Add my usual format handler to logger under etq_cli.

This commit is contained in:
voussoir 2021-01-28 16:54:35 -08:00
parent 38e9b796fe
commit c4ea7c31ac
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -15,6 +15,10 @@ import etiquette
LOG_LEVEL = vlogging.NOTSET LOG_LEVEL = vlogging.NOTSET
handler = vlogging.StreamHandler()
log_format = '{levelname}:etiquette.{module}.{funcName}: {message}'
handler.setFormatter(vlogging.Formatter(log_format, style='{'))
vlogging.getLogger().addHandler(handler)
photodbs = {} photodbs = {}