What's the simplest way to show Grails app log for a developer who is new to Grails?
It could help learning Grails magics.
Groovy 2.x : open grails-app/conf/Config.groovy
, and replace contents of log4j block with:
log4j = {
root {
debug()
}
}
This will enable and send all log to standard out.
Further refining requires studying grails logging in more detail.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.