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)