From 1d8cdfc64ffba176e181f3602a0443cbcb493d66 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 17 Sep 2022 18:55:56 +0200 Subject: Use custom log formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- gemato/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gemato/cli.py b/gemato/cli.py index 44ea423..4df8ee7 100644 --- a/gemato/cli.py +++ b/gemato/cli.py @@ -659,5 +659,8 @@ def main(argv): def setuptools_main(): - logging.getLogger().setLevel(logging.INFO) + logging.basicConfig( + format="[{levelname:>7}] {message}", + style="{", + level=logging.INFO) sys.exit(main(sys.argv)) -- cgit v1.2.3