From: Rob R. <Rob...@no...> - 2005-07-07 15:34:44
|
Damien, Here's a config file with working daily rotation. Hope this helps,= =20 sorry no time to help you debug yours... Cheers, Rob #log.conf log4perl.logger.Ionosonde=3DDEBUG, Logfile log4perl.appender.Logfile=3DLog::Dispatch::FileRotate log4perl.appender.Logfile.filename=3Dlog/load_sec.log log4perl.appender.Logfile.mode=3Dappend log4perl.appender.Logfile.layout=3DLog::Log4perl::Layout::PatternLayo= ut log4perl.appender.Logfile.layout.ConversionPattern=3D%d %p>=20 %F{1}(pid=3D%P):%L %M - %m%n log4perl.appender.Logfile.max=3D366 #have to choose by size or date, not both: #log4perl.appender.Logfile.size=3D1 log4perl.appender.Logfile.DatePattern =3D yyyy-MM-dd log4perl.appender.Logfile.TZ =3D MST Damien Guerin wrote: > Hi, > =20 > I have the following problem : > In a Perl application I would like a log file rotation each day. > To do that, I am using Log4Perl with Dispatch FileRotate module but= =20 > only rotation by size is possible. Indeed day rotation doesn't work= . > =20 > My Log4perl configuration file : > =20 > log4perl.appender.MSG=3DLog::Dis=C2=ADpatch::FileRotate > log4perl.appender.MSG.filename=C2=AD=3D/log/msg.log > log4perl.appender.MSG.mode=3Dapp=C2=ADend > log4perl.appender.MSG.max=3D10 > log4perl.appender.MSG.DatePatt=C2=ADern=3Dyyyy-MM-dd > log4perl.appender.MSG.layout=3DP=C2=ADatternLayout > log4perl.appender.MSG.TZ=3DGMT > log4perl.appender.MSG.layout.C=C2=ADonversionPattern=3D%d %m%n > =20 > A rotation each minutes doesn't work too. I don't kown why? > Please, can you help me? > =20 > Regards, > Damien. --=20 Rob Redmon NOAA/NGDC 325 Broadway E/GC2 Boulder, Colorado 80305 Tel: (303) 497-4331 Fax: (303) 497-6513 Rob...@no... "Engineering is the art of making what you want from things you can g= et."=20 |