logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yair Ogen <yairo...@gmail.com>
Subject Re: log4j paused?
Date Wed, 15 Apr 2009 18:44:47 GMT
Do you type the thread name in your logs? To to add it and analyze the log
file. I have found in the past the in some not thread safe application to
events tries to write a log message at the same time resulting in only one
log message being written.

Can this be your case?


On Mon, Apr 13, 2009 at 9:35 AM, guangxing luo <guangxing.luo@gmail.com>wrote:

> Hi there,
>
> We have web application running in weblogic 9.2 MP2, using log4j as
> log tool in Sun Solaris 10.  We are using central tool class to log
> debug message.
>
> At night, we have a batch job to read 20k transactions from table, and
> insert these transactions into JMS Queue.  Message EJB will process
> concurrently.  The transaction ID for each transaction is logged by
> central log class. However, we found not all of 20K transaction are
> logged.  For online module, we also found some
> log message can not be found.  It seems as if log4j is hang at some
> moment or 'paused'.
>
> Appreciate any sharing.
>
> luo
>
> Below is log4j configuration file used.
>
> #Do not change this --------------------------------------------
> #log4j.loggerFactory=com.XXX.bapid.common.BapidLoggerFactory
> #log4j.rootCategory=DEBUG
> log4j.rootLogger=INFO,A1
> #---------------------------------------------------------------
>
> #Default Logger
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>
>
> log4j.logger.rapiddebug=DEBUG, A_BAPIDDEBUG
> log4j.appender.A-BAPIDDEBUG=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.A-BAPIDDEBUG.layout=org.apache.log4j.PatternLayout
> log4j.appender.A-BAPIDDEBUG.layout.ConversionPattern=%d %m%n
> log4j.appender.A-BAPIDDEBUG.File=/data01/bapid/logs/bapid_debug.log
> log4j.appender.A-BAPIDDEBUG.DatePattern='.'yyyy-MM-dd
> log4j.additivity.bapiddebug=false
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

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