[fix] Use stderr instead of stdout in 'console' logging handler

This commit is contained in:
Jérôme Lebleu 2014-11-09 14:11:03 +01:00
parent a9975edaf7
commit 71a145c4f1
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO'
# Handlers that will be used by loggers
# - file: log to the file LOG_DIR/LOG_FILE
# - console: log to stdout
# - console: log to stderr
LOGGERS_HANDLERS = ['file']
# Directory and file to be used by logging
@ -93,7 +93,7 @@ def _init_moulinette():
'console': {
'class': 'logging.StreamHandler',
'formatter': 'simple',
'stream': 'ext://sys.stdout',
'stream': 'ext://sys.stderr',
},
'file': {
'class': 'logging.FileHandler',

View file

@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO'
# Handlers that will be used by loggers
# - file: log to the file LOG_DIR/LOG_FILE
# - console: log to stdout
# - console: log to stderr
LOGGERS_HANDLERS = ['file']
# Directory and file to be used by logging
@ -93,7 +93,7 @@ def _init_moulinette():
'console': {
'class': 'logging.StreamHandler',
'formatter': 'simple',
'stream': 'ext://sys.stdout',
'stream': 'ext://sys.stderr',
},
'file': {
'class': 'logging.handlers.WatchedFileHandler',