I think we found the problem. 

We have bunch of threads running and sometimes we don't want to log things like 
passwords etc. so we set the loglevel to WARN when these calls to the database 
comes (We actually don't encrypt passwords which is strange, but it is not me 
who makes those decissions). Now, this implementation is not well planned 
because since we have many threads we end up in a situation where we only log 
WARN level for this database class.

I have now eliminated this problem.

Thanks
Henrik

-----Ursprungligt meddelande-----
Fr�n: Bradley, Todd [mailto:[EMAIL PROTECTED] 
Skickat: den 4 april 2005 17:06
Till: Log4J Users List
�mne: RE: Log4J stops logging

That is strange.  Have you already tried turning on log4j debug output to see 
if somebody's resetting or re-reading the configuration that you don't know 
about?


Todd. 

> -----Original Message-----
> From: Henrik Engert [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 04, 2005 3:30 AM
> To: [email protected]
> Subject: Log4J stops logging
> 
> Hi,
> 
> We have a problem with our application that uses Log4j. All of a 
> sudden it stops logging INFO level and only keeps on logging DEBUG 
> level. If I restart the application it works fine for a while then it 
> stops.
> 
> We are using Log4J version 1.2.8 and Java 1.4.
> 
> We initialize Log4J with a property file like this:
> 
> log4j.rootCategory=3DDEBUG, FILE
> 
> log4j.appender.FILE=3Dorg.apache.log4j.RollingFileAppender
> log4j.appender.FILE.File=3D/bookit/prod/dataBI30/log/z3970.log
> log4j.appender.FILE.MaxFileSize=3D30MB
> log4j.appender.FILE.MaxBackupIndex=3D4
> log4j.appender.FILE.layout=3Dorg.apache.log4j.PatternLayout
> log4j.appender.FILE.layout.ConversionPattern=3D%d %-4r [%t] %-5p %c %x 
> - %m%n
> 
> We are not resetting the log4J anywhere in the code or it's treshold.
> 
> Any ideas?
> 
> Regards,
> Henrik Engert
> ###########################################
> 
> This message has been scanned by F-Secure Anti-Virus for Microsoft 
> Exchange.
> For more information, connect to http://www.f-secure.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to