You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Siggelkow, Bill" <bi...@mirant.com> on 2003/01/03 20:35:41 UTC
RE: Re[6]: [OT] some log4j problems using RollingFileAppender not
creati ng a backup file
Hmmm ... I was able to get it working on my set-up -- that is, it created the backup files when the file reached 2K ...
----------------
Struts 1.1b2
WLS 6.1 sp4
Log4J 1.2.6
NT 4
----------------
One wierd thing I noticed was that it seemed like WLS only picked up my new log4j.properties when I hot deployed my webapp -- but not when I restarted WLS -- WLS has always been flakely when it comes to deployment.
I suggest you look at trying Log4j 1.2.6 or see if using the DailyRollingFileAppender might work.
BTW, my appender looks like:
log4j.appender.RollingFile=org.apache.log4j.RollingFileAppender
log4j.appender.RollingFile.File=mirage-log-test.txt
log4j.appender.RollingFile.MaxFileSize=2KB
log4j.appender.RollingFile.MaxBackupIndex=5
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
-----Original Message-----
From: Rick Reumann [mailto:maillist@reumann.net]
Sent: Friday, January 03, 2003 2:11 PM
To: Struts Users Mailing List
Subject: Re[6]: [OT] some log4j problems using RollingFileAppender not
creati ng a backup file
On Friday, January 3, 2003, 1:56:38 PM, Bill wrote:
SB> Do you have a Windows Explorer window open on that folder? I have
SB> found that Windows explorer can hold locks this way.
Even with everything closed except the web browser, the archive file
is not being created. It does seem to consistently start over though
with a blank log file when it reaches 2K- so I know it's understanding
it needs to do something when it hits 2K. It's just the archived copy
that is not being created.
--
Rick
mailto:maillist@reumann.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
[SOLVED] Re[8]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file
Posted by Rick Reumann <ma...@reumann.net>.
On Friday, January 3, 2003, 2:35:41 PM, Bill wrote:
SB> One wierd thing I noticed was that it seemed like WLS only picked
SB> up my new log4j.properties when I hot deployed my webapp -- but
SB> not when I restarted WLS -- WLS has always been flakely when it
SB> comes to deployment.
Well Bill your last post got me thinking. Most of the time I was
just using Tomcat's context manager to restart the application
instance and I figured it was working fince since if I changed the
path location to the rolling file appender it seemed to pick it up
the change and would output to the new file location. For some
reason on a whim I stopped and restarted the whole server (which I
I had tried before) and now it seems to be working. Maybe it was
some weird combination of when I tried to restart the whole server
before that I had it locked at one time by Explorer so that's why
I didn't think that made a difference (coupled with the fact that
restarting using the context manager seemed to work as well for
picking up log4j.properties changes). Regardless for what ever
reason it does seem to be working now. Thanks for sticking with me
on this Bill because I was about ready to give up.
--
Rick
mailto:maillist@reumann.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>