记录spring neo4j的密码查询 [英] logging the cypher query for spring neo4j
本文介绍了记录spring neo4j的密码查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试通过使用以下log4j配置记录由spring数据neo4j生成的密码查询:
I tried to log the cypher query generated by the spring data neo4j by using the following log4j configuration:
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.category.org.springframework.data.neo4j=DEBUG
但是,我看不到日志中显示了密码查询.有人对调查针对spring neo4j数据映射生成的密码查询的方法有想法吗?
However, I couldn't see there are cypher queries shown in the log. Anyone has ideas on the ways of investigating the cypher query generated for the spring neo4j data mapping?
推荐答案
它们是使用DEBUG
记录的,您可以为org.springframework.data.neo4j
设置记录器以查看它们.
they are logged using DEBUG
, you can set a logger for org.springframework.data.neo4j
to see them.
这篇关于记录spring neo4j的密码查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文