From 036e048d998f7d3d76dd4b3cc8a374d0913ee661 Mon Sep 17 00:00:00 2001 From: Rouven Bauer Date: Thu, 7 Jul 2022 14:34:48 +0200 Subject: [PATCH] API docs: include log level in example logger config --- docs/source/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/api.rst b/docs/source/api.rst index c2a119daa..0276a2bd9 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -1485,7 +1485,7 @@ Logging can be enable like so: handler = logging.StreamHandler(sys.stdout) # configure the handler to your liking handler.setFormatter(logging.Formatter( - "%(threadName)s(%(thread)d) %(asctime)s %(message)s" + "[%(levelname)-8s] %(threadName)s(%(thread)d) %(asctime)s %(message)s" )) # add the handler to the driver's logger logging.getLogger("neo4j").addHandler(handler)