logback configuration in dropwizard

741 views
Skip to first unread message

Les Davis

unread,
Dec 22, 2021, 8:53:34 PM12/22/21
to dropwizard-user
So, Dropwizard logging is built on top of logback yet it has its own configuration. Can logback configuration be used as well? I've tried adding my logback.xml file and it doesn't appear to be taken up and applied. I ask because dropwizard logging seems somewhat more simplistic and I'd like to be able to use more of the feature in logback in my dropwizard application.

Thanks
-Les

Jochen Sch.

unread,
Jan 1, 2022, 4:31:22 PM1/1/22
to dropwizard-user
Hi Les,

you could override the Application#bootstrapLogging() method which is calling the BootstrapLogging class to completely avoid Dropwizard's custom configuration of the logging framework and fall back to Logback's defaults.
Cheers,
Jochen
Reply all
Reply to author
Forward
0 new messages