logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan S√łgaard <...@gopinocchio.com>
Subject RE: Things ain't Rolling, man
Date Thu, 15 Aug 2002 08:52:56 GMT
Hi.

The only thing, I can see' there is wrong with the configuration is, that you have placed
the parameter for DatePattern inside a pair of "". I don't think that is the right way.
Try with:
 ...
log4.appender.A1.DatePattern='.'yyyy-MM-dd-a
...

BR Jan

-----Original Message-----
From: PRAVIN VAJIRKAR [mailto:pravin.vajirkar@adtran.com]
Sent: 15. august 2002 00:01
To: 'log4j-user@jakarta.apache.org'
Subject: Things ain't Rolling, man


My Properties file looks like this....

############################
log4j.rootLogger=DEBUG, A1 
log4j.appender.A1.File=C:\\Dorado\\oware3rd\\log4j\\LogFiles\\ServerLogger.log 
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4.appender.A1.DatePattern="'.'yyyy-MM-dd-a"
log4j.appender.A1.MaxBackupIndex=20
log4j.appender.A1.layout=org.apache.log4j.PatternLayout 
log4j.appender.A1.layout.ConversionPattern= {%-5p} [%t] %c %C{1} %d  %m%n
log4j.debug=true 
############################

Problem: At midnight, the file is purged back to 0KB and NO new file is created.....
Woof!! What am I doing wrong guys??

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message