Added a console logger just so it is easy to switch when needed for debugging

This commit is contained in:
Tim Kuhlman 2014-03-18 09:24:30 -06:00
parent 570457f243
commit 00b18d6436
1 changed files with 4 additions and 1 deletions

View File

@ -40,8 +40,11 @@ logging: # Used in logging.dictConfig
default:
format: "%(asctime)s %(levelname)s %(name)s %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: default
file:
class : logging.handlers.RotatingFileHandler
class: logging.handlers.RotatingFileHandler
filename: <%= node[:mon_notification][:log_dir] %>/notification.log
formatter: default
maxBytes: 10485760 # Rotate at file size ~10MB