Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Maven plugin 7.5.1: systemProperties not being honoured?

You can't use slf4j and logback in this way.

The slf4j configuration will initialize (and consequently logback as well) early, at plugin start, hence you can't have that same plugin then start to set system properties that then configure the slf4j and logback specifics.

--
Joakim Erdfelt

(the people behind jetty and cometd)



On Mon, Sep 12, 2011 at 4:43 AM, Robert Munteanu <robert.munteanu@xxxxxxxxx> wrote:
Hi,

I've just upgraded my plugin configuration from 6.1.25 to
7.5.1.v20110908 . The single issue I still face is that the
systemProperties are not applied. This section used to configure
logback has no effect:

                                       <systemProperties>
                                               <systemProperty>
                                                       <name>logback.configurationFile</name>
                                                       <value>./src/main/resources/logback.xml</value>
                                               </systemProperty>
                                       </systemProperties>

Instead, Jetty picks up a default logback.xml from the classpath which
sets the log level to debug.

Including -Dlogback.configurationFile=./src/main/resources/logback.xml
in my launch configuration ( I use Eclipse ) fixes this problem, so
this looks like a bug. Please let me know if I'm doing something wrong
and should open a bug ( and in in which tracker ).

Thanks,

Robert

--
Sent from my (old) computer
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top