Skip to content

Commit 25a14f4

Browse files
authored
API docs: include log level in example logger config (#756)
1 parent ca0b9ed commit 25a14f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ Logging can be enable like so:
14901490
handler = logging.StreamHandler(sys.stdout)
14911491
# configure the handler to your liking
14921492
handler.setFormatter(logging.Formatter(
1493-
"%(threadName)s(%(thread)d) %(asctime)s %(message)s"
1493+
"[%(levelname)-8s] %(threadName)s(%(thread)d) %(asctime)s %(message)s"
14941494
))
14951495
# add the handler to the driver's logger
14961496
logging.getLogger("neo4j").addHandler(handler)

0 commit comments

Comments
 (0)