开发者

how can i use log4j in grails application?

开发者 https://www.devze.com 2023-01-24 14:15 出处:网络
how can i use log4j in grails app开发者_如何学Golication?Look at the Logging section of the manual.

how can i use log4j in grails app开发者_如何学Golication?


Look at the Logging section of the manual. log4j is built in and has a basic configuration out of the box.


You could use log4j right from the box, for example:

log.debug "The value of foo is $foo"

Configuration of logging in last version

If you are into unit testing be sure to check mockLogging method in Testing section.

0

精彩评论

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

关注公众号