Grails 3 has the logback plugin. I can configure it and see all the logs when run-app.
But on PRODUCTION I want to use an external logback.groovy file (on tomcat8).
Using Grails 2 I used to externalize the config.groovy with the logging parameters (TRACE, DEBUG, PATH, etc...).
I follow this question and I was able to set up an external config.yml file for my app. But I didn't see how to set this up for logback.groovy.
How to configure logback parameters in an external file for PRODUCTION?
As per docs , in application-production.yml,
you can define path for an external logback.groovy
file that will override what is defined in your grails-app/conf/logback.groovy
.
logging:
config: /Users/me/config/logback.groovy
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.