Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a way to log queries on Neo4J like Hibernate?
    text
    copied!<p>So, here is the scenario:</p> <ul> <li>I have Neo4J server running locally with some data in it</li> <li>I have a web app using <code>spring-data-neo4j</code></li> </ul> <p>The following code is based on the example code <a href="https://github.com/SpringSource/spring-data-neo4j/tree/master/spring-data-neo4j-examples/cineasts" rel="nofollow">Cineasts</a>:</p> <pre><code>public interface CrewRepository extends GraphRepository&lt;Crew&gt; { Iterable&lt;Crew&gt; findByNameLike(String name); @Query("start thinker=node({0}) match thinker-[:crews]-crews return crews") Set&lt;Crew&gt; findByThinker(Long thinkerId); } </code></pre> <p>No news here. The problem is: the query <code>findByNameLike</code> doesn't work whereas the <code>findByThinker</code> does.</p> <p>I have modified my log configuration file many times - final version is the one below - but, doesn't matter what I try, I can't see any queries being logged - either on my log file or on the server.</p> <pre><code>&lt;logger name="org.neo4j"&gt; &lt;level value="DEBUG" /&gt; &lt;appender-ref ref="console" /&gt; &lt;/logger&gt; &lt;logger name="org.springframework.data.neo4j"&gt; &lt;level value="DEBUG" /&gt; &lt;appender-ref ref="console" /&gt; &lt;/logger&gt; &lt;root&gt; &lt;priority value="error" /&gt; &lt;appender-ref ref="console" /&gt; &lt;/root&gt; </code></pre> <p>All I want is the log the queries so I can see if it's a bug on <code>spring-data-neo4j</code> or if I'm missing something... I have looked through the documentation of both, code examples and couldn't find anything that specific.</p> <p>Any help? Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload