现在我的信息日志只显示 sql 查询?为价值观。您能建议我更改 log4j2.xml 文件以显示值吗?
log4j2.xml:
<RollingRandomAccessFile name="SQLLOGFILE">
<PatternLayout>
<Pattern>%-5p:%d{dd-MMM-yyyy HH:mm:ss,SSS}: %-25t %c : %m%n</Pattern>
</PatternLayout>
</RollingRandomAccessFile>
<AsyncLogger name="jdbc.sqlonly" level="INFO">
<AppenderRef ref="LOGFILE" level="INFO"/>
</AsyncLogger>
<AsyncLogger name="jdbc.audit" level="off"></AsyncLogger>
<AsyncLogger name="jdbc.resultset" level="off"></AsyncLogger>
<AsyncLogger name="jdbc.connection" level="DEBUG">
<AppenderRef ref="CONNECTION"/>
</AsyncLogger>