# http://docs.python.org/library/logging.html
# nb geen spaties tussen achter de komma's!
# 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.drilldownconfig,gui.search,gui.resultlist,gui.availability,gui.searchform,gui.index,server,record,infra,json,dumper,multileveldrilldown
[handlers]
keys = syslog,default,file
#,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_file]
class = FileHandler
level = DEBUG
formatter = stderr
args = ('/tmp/debug.log', 'w')
[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_dumper]
level = DEBUG
qualname = dumper
handlers = file,syslog
[logger_infra]
level = DEBUG
qualname = meresco.infra
handlers = syslog
[logger_configs]
level = DEBUG
handlers = syslog
qualname = meresco
[logger_meresco]
level = WARNING
handlers = syslog
qualname = meresco.configs
[logger_server]
level = DEBUG
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.drilldownconfig]
level = WARNING
handlers = syslog
qualname = meresco.drilldownconfig
[logger_gui.drilldown]
level = WARNING
handlers = syslog
qualname = meresco.drilldown
[logger_gui.search]
level = DEBUG
handlers = syslog
qualname = meresco.search
[logger_gui.resultlist]
level = WARNING
handlers = syslog
qualname = meresco.resultlist
[logger_gui.availability]
level = DEBUG
handlers = syslog
qualname = meresco.availability
[logger_gui.searchform]
level = WARNING
handlers = syslog
qualname = meresco.searchform
[logger_gui.index]
level = INFO
handlers = syslog
qualname = meresco.index
[logger_record]
level = DEBUG
handlers = syslog
qualname = meresco.record
[logger_json]
level = DEBUG
handlers = syslog
qualname = meresco.json
[logger_multileveldrilldown]
level = WARNING
handlers = syslog
qualname = meresco.multileveldrilldown
#
# 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 = (sys.stderr,)
#args = ('/tmp/debug.log')
#[logger_smtp]
#level = CRITICAL
#handlers = default
#qualname = mailer