Source

hgsync / logconfig.ini

[loggers]
keys=root,SyncLog

[handlers]
keys=consoleHandler,fileHandler

[formatters]
keys=fmt1

[logger_root]
level=DEBUG
handlers=consoleHandler

[logger_SyncLog]
level=DEBUG
handlers=consoleHandler,fileHandler
qualname=SyncLog
propagate=0

[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=fmt1
args=(sys.stdout,)

[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=fmt1
args=('hgmon.log', 'a')

[formatter_fmt1]
format=[%(asctime)s] %(message)s
datefmt=