From c4ea7c31ac8935def1271c45ed6192a2a7b46de9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 28 Jan 2021 16:54:35 -0800 Subject: [PATCH] Add my usual format handler to logger under etq_cli. --- frontends/etiquette_cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/etiquette_cli.py b/frontends/etiquette_cli.py index cd6d172..52fa653 100644 --- a/frontends/etiquette_cli.py +++ b/frontends/etiquette_cli.py @@ -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 = {}