[logback-user] Collisions between primary and included configuration files
Ceki Gülcü
ceki at qos.ch
Thu May 27 15:07:14 CEST 2010
On 27/05/2010 3:03 PM, Becker, Thomas wrote:
> Our main logback.xml file is jarred up with our application. We’d like
> to be able to have an “override file” in which we could simply specify
> the settings we wanted to be different than the main file. I thought
> about using the file inclusion feature to include the override file from
> the main config, but the manual doesn’t describe the behavior when the
> included file and the primary file have conflicting settings (for
> example a logger level). Any ideas on how to accomplish this? Thanks!
The last instruction wins. So, if the override file is included last in
logback.xml, the instructions of the override file will win.
HTH,
--
Ceki
More information about the Logback-user
mailing list