I have simple log setup in application.properties:
logging.file = logs/debug.log
logging.level.org.hibernate.SQL = DEBUG
logging.level.org.hibernate.type = TRACE
I have a package co.myapp.notifier
. I want all classes of this package to log to logs/notifier.log
. I tried
https://stackoverflow.com/a/9652239
and
https://stackoverflow.com/a/728351
with no luck.
In all cases the messages goes to my debug.log
If you need to do that, you will need your own
logback.xml
file.If you need a console log, you may need to add it as well. Here is the docs and read this question also.