Logback with multi-module Maven project

I've got a Maven project that (currently) produces 5 war files from 7 Maven modules. Can I configure Logback in one war file and have it work for all of the war files? Thanks in advance, Brian

Hi Brian, Are 5 war files then bundled in an EAR? In other words, are the war files deployed independently or combined within a larger package? Brian Cribbs wrote:
I've got a Maven project that (currently) produces 5 war files from 7 Maven modules. Can I configure Logback in one war file and have it work for all of the war files?
Thanks in advance, Brian
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

The WAR files are deployed independently. On Fri, Jan 16, 2009 at 5:12 AM, Ceki Gulcu <ceki@qos.ch> wrote:
Hi Brian,
Are 5 war files then bundled in an EAR? In other words, are the war files deployed independently or combined within a larger package?
Brian Cribbs wrote:
I've got a Maven project that (currently) produces 5 war files from 7 Maven modules. Can I configure Logback in one war file and have it work for all of the war files?
Thanks in advance, Brian
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

Brian, did you ever come up with a solution for this? On the maven mailing list I've seen a suggestion for something similar, which if I understood it correctly, is to make another maven module that consists of only the logback.xml file, which produces a jar file, which will contain only that logback.xml file. Then all of your other projects depend on that so the jar file is included in their wars. When searching for logback.xml on the classpath I think it also searches in each of the jars since they're on the classpath so it will find and use that logback.xml. Seems kind of like a hack but if it works, what the heck. Brian Cribbs wrote:
The WAR files are deployed independently.
On Fri, Jan 16, 2009 at 5:12 AM, Ceki Gulcu <ceki@qos.ch> wrote:
Hi Brian,
Are 5 war files then bundled in an EAR? In other words, are the war files deployed independently or combined within a larger package?
Brian Cribbs wrote: > I've got a Maven project that (currently) produces 5 war files from 7 > Maven modules. > Can I configure Logback in one war file and have it work for all of the > war files? > > Thanks in advance, > Brian
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
------------------------------------------------------------------------
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (3)
-
Brian Cribbs
-
Ceki Gulcu
-
Rusty Wright