Grails 3 uses logback as the default system of logging.
I need a example of how use logback in grails 3 in this form
log.info("some Info")
You have to set the fourth argument of the logger config to false:
logger('grails.app.controllers', INFO, ['STDOUT'], false)
then the logging is not displayed twice.
I think that's because the root logger catches INFO too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With