Add my usual format handler to logger under etq_cli.
This commit is contained in:
parent
38e9b796fe
commit
c4ea7c31ac
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ import etiquette
|
|||
|
||||
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 = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue