Re: User-based logger level

2012-06-15 Thread Ron Grabowski
Typo at the bottom of: http://loggingtest.apache.org/log4j/2.x/manual/filters.html    To: Log4J Users List Sent: Tuesday, June 12, 2012 1:08 AM Subject: Re: User-based logger level In Log4j 2 the DynamicThresholdFilter can be specified a) globally (equivalent to Logback's TurboFilt

Re: User-based logger level

2012-06-11 Thread Ralph Goers
Am I missing something obvious? > > Kind Regards, > > Yong > > ceki wrote on 06/11/2012 11:59:32 PM: > >> From: ceki >> To: Log4J Users List >> Date: 06/12/2012 12:00 AM >> Subject: Re: User-based logger level >> >> >> Yours i

Re: User-based logger level

2012-06-11 Thread yong . li
Kind Regards, Yong ceki wrote on 06/11/2012 11:59:32 PM: > From: ceki > To: Log4J Users List > Date: 06/12/2012 12:00 AM > Subject: Re: User-based logger level > > > Yours is a text-book requirement: > > http://logback.qos.ch/reasonsToSwitch.html#filters >

Re: User-based logger level

2012-06-11 Thread Christian Grobmeier
In log4j 2.x there are tons of filters which might help here: http://loggingtest.apache.org/log4j/2.x/manual/filters.html (temporary domain) Cheers Christian On Mon, Jun 11, 2012 at 5:28 PM, Jacob Kjome wrote: > > It's possible that Log4j2 supports this out of the box, but for Log4j1, the > obvi

Re: User-based logger level

2012-06-11 Thread ceki
Yours is a text-book requirement: http://logback.qos.ch/reasonsToSwitch.html#filters See the docs on MDCFilter at [1]. [1] http://logback.qos.ch/manual/filters.html#TurboFilter -- Ceki http://twitter.com/#!/ceki On 11.06.2012 11:55, yong...@agfa.com wrote: Dear all, We're about to implem

Re: User-based logger level

2012-06-11 Thread Jacob Kjome
It's possible that Log4j2 supports this out of the box, but for Log4j1, the obvious way is to call logger.log() methods that accept an explicit Level/Priority [1].  Set a ThreadLocal with the Level to use and pass that Level to log() method. [1] http://logging.apache.org/log4j/1.2/apidocs/o

User-based logger level

2012-06-11 Thread yong . li
Dear all, We're about to implement a logging strategy that for different users different effective logger level are used. In particular, we are doing EJB, and we have already pushed user info onto MDC to implement this strategy. By default, the system will run using the following example logg