Personal tools
You are here: Home Blog Minimal python logging module setup

Minimal python logging module setup

Filed under:
log.ini file

Note to self: this is the minimal log.ini file to setup python logging module to output to stdout.

[loggers]
keys=root

[handlers]
keys=hand01

[formatters]
keys=form01

[logger_root]
level=DEBUG
handlers=hand01

[handler_hand01]
class=StreamHandler
level=NOTSET
formatter=form01
args=(sys.stdout,)

[formatter_form01]
format=F1 %(asctime)s %(levelname)s %(message)s
datefmt=
class=logging.Formatter
Document Actions