logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject RE: Could not find root logger information Is this OK?
Date Wed, 19 Mar 2008 10:24:12 GMT
I am not quite shure about property configuration (I work always with xml). But I suspect that
the double configuration of the root logger ("rootLogger" and "rootCategory") causes your
problem.
But the both lines "rootLogger" and "rootCategory" means the same. The use of the term "Category"
is deprecated and replaced by the term "Logger". 
Heri

> -----Original Message-----
> From: Mustafa Cayci [mailto:acayci@yahoo.com]
> Sent: Wednesday, March 19, 2008 10:51 AM
> To: log4j-user@logging.apache.org
> Subject: Could not find root logger information Is this OK?
> 
> 
> Hello,
> 
> I have configured log4j in my application server. I have 
> defined the following log4j.properties
> 
> log4j.debug=true
> log4j.threshold=ALL
> log4j.rootLogger=DEBUG,fileAppend
> log4j.rootCategory=DEBUG,fileAppend
> 
> log4j.logger.com.businessobjects.security.jaas=DEBUG
> log4j.logger.org.apache=ERROR
> 
> log4j.appender.conAppend=org.apache.log4j.ConsoleAppender
> #log4j.appender.conAppend.Threshold=INFO
> log4j.appender.conAppend.layout=org.apache.log4j.PatternLayout
> log4j.appender.conAppend.layout.ConversionPattern=%-4r [%t] 
> %-5p %c %x - %m%n
> 
> log4j.appender.fileAppend=org.apache.log4j.RollingFileAppender
> log4j.appender.fileAppend.Threshold=DEBUG
> log4j.appender.fileAppend.File=jsr168app.log
> log4j.appender.fileAppend.MaxFileSize=5MB
> log4j.appender.fileAppend.MaxBackupIndex=100
> log4j.appender.fileAppend.Append=true
> log4j.appender.fileAppend.layout=org.apache.log4j.PatternLayout
> log4j.appender.fileAppend.layout.ConversionPattern=%d %-5p 
> [%t] %-17c{2} - %m\r\n
> 
> When I start my application server, I am seeing the following 
> messages 
> 
> ...
> 08/03/19 04:33:55 log4j: Finished configuring.
> 08/03/19 04:33:55 log4j: Reading configuration from URL 
> classloader:/META-INF/CrystalEnterprise.Trace/basic.properties
> 08/03/19 04:33:55 log4j: Could not find root logger 
> information. Is this OK?
> 08/03/19 04:33:55 log4j: Parsing for 
> [com.businessobjects.sdk] with value=[ERROR, CE1].
> 08/03/19 04:33:55 log4j: Level token is [ERROR].
> 08/03/19 04:33:55 log4j: Category com.businessobjects.sdk set to ERROR
> 08/03/19 04:33:55 log4j: Parsing appender named "CE1".
> ...
> 
> 
> I am also seeing "Could not find root logger information."  
> Shouldn't "log4j.rootLogger=DEBUG,fileAppend" do the trick?
> 
> Thanks,
> 
> Mustafa
> 
> 
> 
> 
>       
> ______________________________________________________________
> ______________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message