Log additionally to a file server.log

(imported from commit eabf9473ae04d4ff95652d4f8c8ab76f70157519)
This commit is contained in:
Keegan McAllister
2012-10-12 17:47:43 -04:00
parent c4d2f98496
commit db0cf88cc0
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
/zephyrdb
/all_messages_log
/all_messages_log.lock
/server.log

View File

@@ -171,11 +171,17 @@ LOGGING = {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'default'
},
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'formatter': 'default',
'filename': 'server.log'
}
},
'loggers': {
'': {
'handlers': ['console'],
'handlers': ['console', 'file'],
'level': 'INFO'
}
}