I was able to do the following in order to log one particular class to its own log file using Dropwizard YAML:
loggers:
# Sets the level for 'com.example.app' to DEBUG.
com.xyz.mappers: INFO
com.xyz: DEBUG
org.reflections: ERROR
"com.xyz.service.fixflyer.FixFlyerService":
level: DEBUG
# This line stops org.hibernate.SQL (or anything under it) from using the root logger
additive: false
appenders:
- type: file
currentLogFilename: /var/log/xyz/fixflyer.log
archivedLogFilenamePattern: /var/log/xyz/fixflyer-%d.log.gz
archivedFileCount: 5 How do I configure it to also add 4 addtl classes e.g.
"com.xyz.service.fixflyer.FixFlyerPartA" and "com.xyz.service.fixflyer.FixFlyerPartB" classes as well?
Thanks, Jason