# http://docs.python.org/library/logging.html
# nb geen spaties tussen achter de komma's!
[loggers]
keys = root,meresco,configs,inbox,configWatcher,gui,gui.drilldown,gui.search,gui.resultlist,gui.availability,gui.searchform,gui.index,server
[handlers]
keys = syslog,default
#,smtp
[formatters]
keys = simple,complex,stderr
[formatter_simple]
class = logging.Formatter
format = SIMPLE %(name)s:%(levelname)s= %(message)s
[formatter_complex]
class = logging.Formatter
format = %(asctime)s %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s
[formatter_stderr]
class = logging.Formatter
format = %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s
[handler_syslog]
class = handlers.SysLogHandler
level = DEBUG
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')
############################################################
# logging per file
#
# General
#
[logger_configs]
level = WARNING
handlers = syslog
qualname = meresco
[logger_meresco]
level = WARNING
handlers = syslog
qualname = meresco.configs
[logger_server]
level = INFO
handlers = syslog
qualname = meresco.server
[logger_configWatcher]
level = INFO
handlers = syslog
qualname = meresco.configWatcher
[logger_inbox]
level = WARNING
handlers = syslog
qualname = meresco.inbox
[logger_googlelikequery]
level = INFO
handlers = syslog
qualname = meresco.googlelikequery
#
# GUI
#
[logger_gui]
level = WARNING
handlers = syslog
qualname = meresco.gui
[logger_gui.drilldown]
level = WARNING
handlers = syslog
qualname = meresco.drilldown
[logger_gui.search]
level = INFO
handlers = syslog
qualname = meresco.search
[logger_gui.resultlist]
level = WARNING
handlers = syslog
qualname = meresco.resultlist
[logger_gui.availability]
level = WARNING
handlers = syslog
qualname = meresco.availability
[logger_gui.searchform]
level = WARNING
handlers = syslog
qualname = meresco.searchform
[logger_gui.index]
level = DEBUG
handlers = syslog
qualname = meresco.index
#
# DEFAULT
#
# all messages are always propagated to the root unless specified not to
#
[logger_root]
level = NOTSET
handlers = default
# all messages are handled by this default handler, writing to stderr
[handler_default]
class = StreamHandler
level = NOTSET
formatter = stderr
#args = ('debug.log', 'w')
args = (sys.stderr,)
#[logger_smtp]
#level = CRITICAL
#handlers = default
#qualname = mailer