Skip to content

Commit 09daa0e

Browse files
author
Zhen
committed
Added example of logging
1 parent df24bc7 commit 09daa0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ Quick Example
3030
session.write_transaction(add_friends, "Arthur", "Merlin")
3131
session.read_transaction(print_friends, "Arthur")
3232
33+
Using logging
34+
=============
35+
The driver provides a built-in logging. The following example code enables debug logging and prints out logs at stdout:
36+
37+
.. code-block:: python
38+
39+
from neo4j.util import watch
40+
import logging
41+
from sys import stdout
42+
43+
watch("neo4j.bolt", logging.DEBUG, stdout)
44+
3345
3446
Installation
3547
============

0 commit comments

Comments
 (0)