【发布时间】:2017-02-24 17:30:45
【问题描述】:
log4j2.xml 有 AsyncLogger name="org.mule.module.db" level="INFO" 但我没有在日志中看到参数化查询。我在 /src/main/resources 下有 log4j2.xml。我正在使用参数化查询在 sql server 上执行更新操作。我想在日志中查看运行时构建的查询。
【问题讨论】:
标签: mule mule-studio
log4j2.xml 有 AsyncLogger name="org.mule.module.db" level="INFO" 但我没有在日志中看到参数化查询。我在 /src/main/resources 下有 log4j2.xml。我正在使用参数化查询在 sql server 上执行更新操作。我想在日志中查看运行时构建的查询。
【问题讨论】:
标签: mule mule-studio
为了记录Mule正在执行的SQL语句,需要添加如下log4j配置。
对于新的数据库模块:
log4j.logger.org.mule.module.db=调试
对于旧的 JDBC 传输:
log4j.logger.com.mulesoft.mule.transport.jdbc=DEBUG
见https://support.mulesoft.com/s/article/ka4340000004GWgAAM/Logging-the-SQL-statements-in-Mule 见https://www.mulesoft.org/jira/browse/MULE-7371
【讨论】: