Re: class specific logging level

2012-06-11 Thread aggarwal
lass); >> public static void doThings () { >> logger.error ("OtherClass error"); >> logger.info ("OtherClass info"); >> logger.debug ("OtherClass debug"); >> } >> } >> >> -- >> >> >> >

Re: class specific logging level

2012-06-10 Thread aggarwal
logger.info ("OtherClass info"); > logger.debug ("OtherClass debug"); > } > } > > -- > > > > http://jakarta.apache.org/log4j/"; > debug="true"> > > > > > > > > > > > > >

Re: class specific logging level

2012-06-10 Thread aggarwal
gt;> >> public class OtherClass { >> static Logger logger = Logger.getLogger(OtherClass.class); >> public static void doThings () { >> logger.error ("OtherClass error"); >> logger.info ("OtherClass info"); >> logger.debug (&

Re: class specific logging level

2012-06-10 Thread aggarwal
> logger.error ("OtherClass error"); > logger.info ("OtherClass info"); > logger.debug ("OtherClass debug"); > } > } > > -- > > > > http://jakarta.apache.org/log4j/"; > debug="true"> > > > > > >

Re: class specific logging level

2012-06-08 Thread Douglas E Wegscheid
root being set to ERROR will not block the Myclass DEBUG; the more-specific Myclass logger setting overrides the root setting. Have you actually tried this? package com.pkg; import org.apache.log4j.Logger; import com.other.OtherClass; public class MyClass { static Logger logger = Logger.getL

Re: class specific logging level

2012-06-08 Thread aggarwal
o matter what the level of root >> and >> appender is, I want DEBUG logs of only MyClass. >> >> >> >> >> >> Douglas E Wegscheid wrote: >>> >>>> I want MyClass logs of DEBUG level and all other classes of ERROR in >>>&g

Re: class specific logging level

2012-06-08 Thread Jacob Kjome
1.log. If you set the level of the Log1 appender to DEBUG, you say that you get the DEBUG logs of Myclass in log1.log. Isn't that what you want? -- View this message in context: http://old.nabble.com/class-specific-logging-level-tp33974515p33982558.html Sent from the Log4j - Use

Re: class specific logging level

2012-06-08 Thread aggarwal
he Log1 appender to DEBUG, you say that you get > the DEBUG logs of Myclass in log1.log. Isn't that what you want? > -- View this message in context: http://old.nabble.com/class-specific-logging-level-tp33974515p33982558.html Sent from the Log4j - Users mailing list archive at Na

Re: class specific logging level

2012-06-08 Thread Douglas E Wegscheid
> I want MyClass logs of DEBUG level and all other classes of ERROR in > "log1.log" file as mentioned in logger "Log1". > ... > whereas if I set the level in appender > "Log1" to DEBUG, I do get the DEBUG logs of Myclass in log1.log. If you set the level of the Log1 appender to DEBUG, you say tha

Re: class specific logging level

2012-06-08 Thread Jacob Kjome
                       Jake On Thu, 7 Jun 2012 01:51:07 -0700 (PDT)  aggarwal wrote: Hi, Is it possible to set logging level for few selected classes in appender to DEBUG and rest all ERROR ? Is there any combination of filter th

Re: class specific logging level

2012-06-08 Thread aggarwal
workaround. >>> >>> >>>     >>>     >>> >>> >>>     >>>     >>> >>> >>>     >>>     >>> >>> >>> >>> Jake >>> >>> On Th

Re: class specific logging level

2012-06-08 Thread Jacob Kjome
    Jake On Thu, 7 Jun 2012 01:51:07 -0700 (PDT)  aggarwal wrote: Hi, Is it possible to set logging level for few selected classes in appender to DEBUG and rest all ERROR ? Is there any combination of filter that can do this ? -- View this message in context: http://old.nabble.com/cla

Re: class specific logging level

2012-06-07 Thread aggarwal
-0700 (PDT) >  aggarwal wrote: >> >> Hi, >> >> Is it possible to set logging level for few selected classes in appender >> to >> DEBUG and rest all ERROR ? Is there any combination of filter that can do >> this ? >> -- >> View this messag

Re: class specific logging level

2012-06-07 Thread Jacob Kjome
classes in appender to DEBUG and rest all ERROR ? Is there any combination of filter that can do this ? -- View this message in context: http://old.nabble.com/class-specific-logging-level-tp33974515p33974515.html Sent from the Log4j - Users mailing list archive at Nabble.com

class specific logging level

2012-06-07 Thread aggarwal
Hi, Is it possible to set logging level for few selected classes in appender to DEBUG and rest all ERROR ? Is there any combination of filter that can do this ? -- View this message in context: http://old.nabble.com/class-specific-logging-level-tp33974515p33974515.html Sent from the Log4j