diff --git a/amarillo/static/logging.conf b/amarillo/static/logging.conf index 429da8e..142287a 100644 --- a/amarillo/static/logging.conf +++ b/amarillo/static/logging.conf @@ -2,14 +2,14 @@ keys=root [handlers] -keys=consoleHandler +keys=consoleHandler, fileHandler [formatters] keys=simpleFormatter [logger_root] level=INFO -handlers=consoleHandler +handlers=consoleHandler, fileHandler propagate=yes [handler_consoleHandler] @@ -18,5 +18,11 @@ level=DEBUG formatter=simpleFormatter args=(sys.stdout,) +[handler_fileHandler] +class=handlers.RotatingFileHandler +level=ERROR +formatter=simpleFormatter +args=('error.log', 'a', 1000000, 3) # Filename, mode, maxBytes, backupCount + [formatter_simpleFormatter] -format=%(asctime)s - %(name)s - %(levelname)s - %(message)s \ No newline at end of file +format=%(asctime)s - %(name)s - %(levelname)s - %(message)s