[logback-user] Logback with multi-module Maven project
Rusty Wright
rusty.wright at gmail.com
Fri Feb 20 19:31:27 CET 2009
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 at 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 at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
More information about the Logback-user
mailing list