我添加到jboss(有关hibernate统计信息的信息):
<system-properties>
<property name="hibernate.generate_statistics" value="true"/>
</system-properties>
<logger category="org.hibernate.stat">
<level name="DEBUG"/>
</logger>
日志输出:
16:39:33,648 DEBUG [org.hibernate.stat.internal.ConcurrentStatisticsImpl] (http-localhost-127.0.0.1-8080-1) [rid:1506251439320100001] HHH000117: HQL: select .... time: 364ms, rows: 6023
16:39:33,741 DEBUG [org.hibernate.stat.internal.ConcurrentStatisticsImpl] (http-localhost-127.0.0.1-8080-1) [rid:1506251439320100001] HHH000117: HQL: select ...., time: 1ms, rows: 5
是否有可能添加到此日志中,有关方法的信息(包含此sql查询)?