62e30e52de
Heavily taken from statusbot, but removed wiki and twitter defaults. Change-Id: I7b1958dbe37e5d25b8fde746235c88a4d6763ffd
45 lines
748 B
Plaintext
45 lines
748 B
Plaintext
[loggers]
|
|
keys=root,ptgbot,irc
|
|
|
|
[handlers]
|
|
keys=console,debug,normal
|
|
|
|
[formatters]
|
|
keys=simple
|
|
|
|
[logger_root]
|
|
level=WARNING
|
|
handlers=console
|
|
|
|
[logger_ptgbot]
|
|
level=DEBUG
|
|
handlers=debug,normal
|
|
qualname=ptgbot
|
|
|
|
[logger_irc]
|
|
level=DEBUG
|
|
handlers=debug,normal
|
|
qualname=irc
|
|
|
|
[handler_console]
|
|
level=WARNING
|
|
class=StreamHandler
|
|
formatter=simple
|
|
args=(sys.stdout,)
|
|
|
|
[handler_debug]
|
|
level=DEBUG
|
|
class=logging.handlers.TimedRotatingFileHandler
|
|
formatter=simple
|
|
args=('/var/log/ptgbot/ptgbot_debug.log', 'midnight', 1, 30,)
|
|
|
|
[handler_normal]
|
|
level=INFO
|
|
class=logging.handlers.TimedRotatingFileHandler
|
|
formatter=simple
|
|
args=('/var/log/ptgbot/ptgbot.log', 'midnight', 1, 30,)
|
|
|
|
[formatter_simple]
|
|
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
|
datefmt=
|