# http://docs.python.org/library/logging.html
# nb geen spaties tussen achter de komma's!
[loggers]
keys = root,gui,configs,inbox,gui,gui.drilldown,gui.resultlist
[handlers]
keys = syslog,default,smtp
[formatters]
keys = simple,complex
[formatter_simple]
class = logging.Formatter
format = SIMPLE %(name)s:%(levelname)s= %(message)s
[formatter_complex]
class = logging.Formatter
#format = COMLX %(asctime)s %(name)s:%(levelname)s[%(pathname)s line:%(lineno)s] -- %(message)s
format = %(asctime)s %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s
[handler_syslog]
class = handlers.SysLogHandler
level = WARNING
args = [('/dev/log'),handlers.SysLogHandler.LOG_LOCAL0]
formatter = complex
[handler_smtp]
class = handlers.SMTPHandler
level = CRITICAL
formatter = complex
#args=('localhost', 'from@abc', ['user1@abc', 'user2@xyz'], 'Logger Subject')
args = ('localhost', 'anton@uvt.nl', ['anton@uvt.nl'], 'Logger Subject')
[logger_configs]
level = WARNING
handlers = syslog
qualname = meresco.configs
[logger_inbox]
level = WARNING
handlers = syslog
qualname = meresco.inbox
#
# GUI
#
[logger_gui]
level = WARNING
handlers = syslog
qualname = meresco.gui
[logger_gui.drilldown]
level = WARNING
handlers = syslog
qualname = meresco.drilldown
[logger_gui.resultlist]
level = WARNING
handlers = syslog
qualname = meresco.resultlist
#
# DEFAULT
#
# all messages are propagated to the root unless specified not to
[logger_root]
level = NOTSET
handlers = default
#
[handler_default]
class = StreamHandler
level = NOTSET
formatter = complex
#args = ('debug.log', 'w')
args = (sys.stderr,)
#[logger_smtp]
#level = CRITICAL
#handlers = default
#qualname = mailer