logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Jansenson" <cjansen...@brownstone.net>
Subject Logging stops after hours working
Date Mon, 15 Jan 2007 15:12:23 GMT
I am running an application that uses log4j version 1.2.9.  The application
is running on Java 1.5.0.9 for Linux 64-bit version.  After minutes or hours
of running and logging, log4j stops logging.  The console shows the
following message, which partially explains the reason:

 

log4j: Hierarchy threshold set to [OFF].

log4j: Could not find root logger information. Is this OK?

log4j: Finished configuring.

 

But why does this happen?  Since this information is printed from the
PropertyConfigurator, It looks as if log4j were re-configuring, even though
I am NOT using the configureAndWatch method, and the log4j.properties file
was neither touched nor changed.  

 

My log4j.properties:

 

# enable log4j debugging, and set threshold=ALL (see bug 10598)

log4j.threshold=ALL

log4j.debug=true

 

# Set root logger level to DEBUG and its only appender to A1.

log4j.rootLogger=ERROR, A1

log4j.logger.http=WARN, HTTP

 

# see bug 10603:  http should not inherit appenders, etc, from root.

log4j.additivity.http=false

 

log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender

log4j.appender.A1.File=logs/error-${port}.log

log4j.appender.A1.DatePattern='.'yyyy-MM-dd

 

# A1 uses PatternLayout.

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

log4j.appender.A1.layout.ConversionPattern=%d{DATE} %x [%t] %-5p %c %x -
%m%n

 

############################################

# HTTP Log config

############################################

 

log4j.appender.HTTP=org.apache.log4j.DailyRollingFileAppender

log4j.appender.HTTP.File=logs/http-${port}.log

log4j.appender.HTTP.DatePattern='.'yyyy-MM-dd

 

# A1 uses PatternLayout.

log4j.appender.HTTP.layout=org.apache.log4j.PatternLayout

 

log4j.appender.HTTP.layout.ConversionPattern=%m%n

 

 

I hope you can help me on this issue,

 

Cristian Jansenson

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.10/626 - Release Date: 1/14/2007
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message