lundi 8 août 2016

log level in in unit tests of Neo4j

I am unit testing an extension for Neo4j 3.0.x using the official documentation. In each of my resources, I inject both the GraphDatabaseService and org.neo4j.logging.Log objects provided by Neo4j.

How can I configure the logger to print all DEBUG logs to stdout during my unit tests?

Actually, I couldn't even change the log level on a running instance of Neo4j either, regardless of the value I set in neo4j.conf: dbms.logs.debug.level=DEBUG

Aucun commentaire:

Enregistrer un commentaire