loggingneo4jpy2neo

Stop Log from Outputting in py2neo


How can I stop py2neo from spitting out each created relationship/node, like the following:

(http://localhost:7474/db/data/' ref=u'relationship/13441' start=u'node/13446' end=u'node/3' type=u'IN' properties={}>,)

As encouraged by this page, when I set the below line to OFF

java.util.logging.ConsoleHandler.level=OFF

I silence logging when I call a function which creates the relationship/node. However, if I directly create something (graph.create(...) in my main, then I still see this print to the console.


Solution

  • If you are talking about running Graph.create from a Python console then the value you see is the return value from the method, not a log entry.

    Note also that the logging setting you refer to is for the server, not the driver.