In Neo4jDialect we create the ExecutionEngine with the following syntax:
public Neo4jDialect(Neo4jDatastoreProvider provider) {
this.executionEngine = new ExecutionEngine( provider.getDataBase(), StringLogger.SYSTEM_DEBUG );
...
}
The use of StringLogger.SYSTEM_DEBUG will log every cypher query we run. We can remove the parameter or use StringLogger.SYSTEM or StringLogger.SYSTEM_ERR or make it configurable.