开发者

Is it possible to put all output from show_sql in a separate file?

开发者 https://www.devze.com 2023-01-07 19:06 出处:网络
When developing or running a spring mvc app locally that uses hibernate, it would be nice if I could get the output of all sql to a separate file.

When developing or running a spring mvc app locally that uses hibernate, it would be nice if I could get the output of all sql to a separate file.

Is this possible?

I know there is a hibernate property show_sql but I believe that开发者_StackOverflow社区 will just get jumbled together with all other log4j logging info, correct?


Set the org.hibernate.SQL category to DEBUG and use a specific appender for it.

See also

  • 3.5. Logging
0

精彩评论

暂无评论...
验证码 换一张
取 消