logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Friedman, Brent" <bfried...@cincom.com>
Subject Using a rolling log file across multiple .ear/.war files
Date Mon, 18 Aug 2008 14:06:43 GMT
I have used log4j in the past, but I am trying to use it now for
something where I am running into problems.  Any suggestions/advice
would be appreciated.  I can't get a file logger to roll files.  When
the file reaches its preset size, it overwrites the original file
instead of rolling.

 

This situation involves a web app that includes multiple .ear files.
Each .ear file has its own log, and there is a common log file across
the web app.  I would like to create a separate log file which can be
accessed by specific pieces of each application, e.g., a special purpose
log file.  My current attempts have not been able to define a rolling
log file.  The environment is Websphere 6.0.2.x running on Windows 2003
Server.

 

My google attempts have indicated a possible problem with multiple
.ear/.war attachments to a single log file may cause problems with
rolling, but there didn't seem to be a work-around.  Having separate log
files for this specific event log across multiple .ear/.war files would
be a nightmare to debug.

 

So, how can I use a single rolling log file to function properly across
multiple .ear/.war components in a single web app?

 

Thanks,


Brent Friedman

 


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