0

I'm migrating an app frm Grails 2.5.6 to Grails 3.3.9 and I'm having trouble making the logs from the Bootstrap.groovy work, I need to do a log.info "xxxx" for stuff that gets created in the init, but can't find one single example online about how that is done.

Pablo Pazos
  • 3,080
  • 29
  • 42

1 Answers1

0

The Bootstrap is just a regular class. So it can be handled like any other class for logging purposes. Add a logger in your logback.groovy:

logger("my.package.BootStrap", INFO) // adjust package
cfrick
  • 35,203
  • 6
  • 56
  • 68