logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Farrow <marc.far...@gmail.com>
Subject RE: DailyRollingAppender - How does it know when to rollover?
Date Tue, 19 May 2009 12:50:58 GMT

LOG0: is a logical on OpenVMS (similiar to a 'symbiant' or whatever it is
called on Unix/Linux).  This is a valid directory structure on the O.S.  

I will check the privileges for the account which Tomcat is running under to
verify.



Matt Brown-20 wrote:
> 
> What is "LOGO:"?
> 
> And are you sure the user the application runs under has sufficient access
> to create/rename files in whichever directory it is attempting to write
> to? 
> 
> -----Original Message-----
> From: Marc Farrow [mailto:marc.farrow@gmail.com] 
> Sent: Tuesday, May 19, 2009 8:09 AM
> To: log4j-user@logging.apache.org
> Subject: RE: DailyRollingAppender - How does it know when to rollover?
> 
> 
> I finally got around to this again.  I changed the rollover time to be in
> seconds so I should get a new log with each execution.  When I run the
> app, I get a new log, but the rolled over file is not created.  I cannot
> find a file with my matching DatePattern.  Below is my Properties file.
> 
> log4j.rootLogger=WARN, R
> log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.R.File=LOG0:MyLogFile.log
> log4j.appender.R.DatePattern='.'yyyy-MM-dd-mm-ss
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %d{yyyy-MMM-dd HH:mm:ss.SSS}
> - %m%n log4j.appender.R.ImmediateFlush=true
> log4j.logger.com.company.myfile=INFO
> 
-- 
View this message in context: http://www.nabble.com/DailyRollingAppender---How-does-it-know-when-to-rollover--tp23390773p23615776.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message