You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by GOPALA KRISHNA PRABHU <GO...@nestec.net> on 2002/11/16 04:53:31 UTC

What is the difference between rootLogger and rootCategory

Hello friends 

please tell me 

What is the difference between rootLogger and rootCategory

in the configuration 

log4j.rootCategory=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %x - %m%n
log4j.logger.Log4jLogSample=debug

log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %x - %m%n
log4j.logger.Log4jLogSample=debug


Both outputs the same output.

Thanks in Advance.
G.Gopala krishna Prabhu   

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: What is the difference between rootLogger and rootCategory

Posted by Jacob Kjome <ho...@visi.com>.
Log4j has gone away from using Category and now uses Logger in its 
place.  Just Category is still around for backward compatibility.  You 
should see very little difference (as they both work) now, but I don't 
think categories will exist in Log4j-1.3 so start using loggers now.

Jake

At 09:23 AM 11/16/2002 +0530, you wrote:
>Hello friends
>
>please tell me
>
>What is the difference between rootLogger and rootCategory
>
>in the configuration
>
>log4j.rootCategory=DEBUG, A1
>log4j.appender.A1=org.apache.log4j.ConsoleAppender
>log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %x - %m%n
>log4j.logger.Log4jLogSample=debug
>
>log4j.rootLogger=DEBUG, A1
>log4j.appender.A1=org.apache.log4j.ConsoleAppender
>log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %x - %m%n
>log4j.logger.Log4jLogSample=debug
>
>
>Both outputs the same output.
>
>Thanks in Advance.
>G.Gopala krishna Prabhu
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>