[logback-user] Setting up trace only for a certain user

Ralph Goers rgoers at apache.org
Tue Apr 28 02:14:50 CEST 2009


It is barely mentioned in the document below, but  
DynamicThresholdFilter (http://logback.qos.ch/apidocs/ch/qos/logback/classic/turbo/DynamicThresholdFilter.html 
) might also be what you are looking for. It is a little more  
complicated than MDCFilter but provides more control.

Ralph

On Apr 27, 2009, at 7:37 AM, Ceki Gulcu wrote:

>
> Oh, sorry I misunderstood the question. You actually want a  
> TurboFilter. See http://logback.qos.ch/manual/filters.html#TurboFilter
>
> MDCFilter should fit your needs nicely. (Look a few paragraphs down  
> after the "TurboFilters" section.
>
> HTH,
>
> Christophe Elek wrote:
>> Salut Ceki,
>> Thanks for the info... but... :)
>> one question tough, what about the dynamicity (sic? :)
>> the code I see suggests the developer enters the variable at  
>> runtime into a List/Map
>> if I want to be as 'detached as possible' from the code, is there a  
>> way log4j can setup variables or am I 'stuck' with system variable ?
>> Christophe Elek - Senior Software Analyst
>> IBM Rational Serviceability Architect
>
> -- 
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20090427/73236f5a/attachment-0001.htm>


More information about the Logback-user mailing list