logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mustafa Cayci <aca...@yahoo.com>
Subject Re: Could not find root logger information Is this OK?
Date Wed, 19 Mar 2008 14:13:04 GMT
Hello Tim,

Yes that was the case. I was reading the output and noticed that "../Crys../basic.properties"
and found out that that file was not using rootCategory.  I removed that file from the library
and restarted my application server and worked.

Thanks,

Mustafa

----- Original Message ----
From: Tim Watts <timtw@earthlink.net>
To: log4j-user@logging.apache.org
Sent: Wednesday, March 19, 2008 9:55:50 AM
Subject: Re: Could not find root logger information Is this OK?

Hi,

It looks like log4j may be picking up the wrong config file (unless you've got 
some mechanism in place to configure log4j additively from multiple files). 
It's configuring itself from:

    [some-jar-or-dir]/META-INF/CrystalEnterprise.Trace/basic.properties 

which apparently does NOT have a log4j.rootLogger/.rootCategory property set. 
That's why the message appears in the output. (As mentioned previously, these 
properties are redundant; but I think setting both is harmless).

Are all the messages being logged to jsr168app.log? The debug output should 
also have messages like this:

08/03/19 04:33:55 log4j: Parsing for [com.businessobjects.security.jaas] with 
value=[DEBUG, fileAppend]. 
08/03/19 04:33:55 log4j: Level token is [DEBUG].
08/03/19 04:33:55 log4j: Category com.businessobjects.security.jaas set to 
DEBUG
08/03/19 04:33:55 log4j: Parsing appender named "fileAppend".

If not, then it's definitely not configuring itself properly.


On Wednesday 19 March 2008 5:50 am, Mustafa Cayci wrote:
> 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

-- 
"Absolute security comes with chains."

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






      ____________________________________________________________________________________
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


Mime
View raw message