lass);
>> public static void doThings () {
>> logger.error ("OtherClass error");
>> logger.info ("OtherClass info");
>> logger.debug ("OtherClass debug");
>> }
>> }
>>
>> --
>>
>>
>>
>
logger.info ("OtherClass info");
> logger.debug ("OtherClass debug");
> }
> }
>
> --
>
>
>
> http://jakarta.apache.org/log4j/";
> debug="true">
>
>
>
>
>
>
>
>
>
>
>
>
>
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 (&
> logger.error ("OtherClass error");
> logger.info ("OtherClass info");
> logger.debug ("OtherClass debug");
> }
> }
>
> --
>
>
>
> http://jakarta.apache.org/log4j/";
> debug="true">
>
>
>
>
>
>
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
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
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
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
> 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
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
workaround.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Jake
>>>
>>> On Th
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
-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
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
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
15 matches
Mail list logo