What I do is
<root level="${sys:maven.logging.root.level}">
<appender-ref ref="console"/>
</root>
so it works :-) (I only need to ensure the sys props is set)
Any way to have something with a default value ?
<properties>
<property name="rootLevel" value="${sys:maven.logging.root.level}"
default="info"/>
</properties>
<root level="${rootLevel}">
<appender-ref ref="console"/>
</root>
2012/11/10 Gary Gregory <[email protected]>:
> 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 <[email protected]> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
>
> --
> E-Mail: [email protected] | [email protected]
> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
> Spring Batch in Action: http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]