budget/logging.conf
Luís Murta 9513016d42
Adds SQLite interface and logging.conf
Begins process of porting transaction data from csv to SQLite.
Improves logging and introduces logging.conf.
2021-05-16 00:42:35 +01:00

38 lines
594 B
Plaintext

[loggers]
keys=root,transactions
[handlers]
keys=console,file
[formatters]
keys=simple,complex
[logger_root]
level=NOTSET
handlers=console,file
[logger_transactions]
level=DEBUG
handlers=console,file
propagate=0
qualname=pfbudget.transactions
[handler_console]
class=StreamHandler
level=INFO
formatter=simple
args=(sys.stdout,)
[handler_file]
class=FileHandler
level=NOTSET
formatter=complex
args=('logs/pfbudget.log',)
[formatter_simple]
format=%(asctime)s %(message)s
datefmt=%Y-%m-%d %H:%M:%S
[formatter_complex]
format=%(asctime)s %(levelname)s %(module)s::%(funcName)s %(message)s