logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Any sys props to change root level
Date Sat, 10 Nov 2012 21:59:52 GMT
I've often want to to turn on DEBUG myself without resorting to editing a
config file... Ralph?

While quite useful, something like -Dsys.prop=DEBUG, I'm afraid it might be
opening Pandora's box for an all sys-props config system.

Gary

On Sat, Nov 10, 2012 at 4:54 PM, Olivier Lamy <olamy@apache.org> wrote:

> Hi,
> Is there any sys props to change defined root level from the
> configuration file ?
>
>     <root level="info">
>       <appender-ref ref="console"/>
>     </root>
>
> My use case is to change to debug or error depending on user cli
> option choice (-X for debug -q for error means quiet)
>
> Thanks
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
View raw message