You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Abramson, Rami" <ra...@terayon.com> on 2003/01/09 09:54:57 UTC
RE: how to delete the log file with out stopping the logger appli
cation
-----Original Message-----
From: MURUGAN V V [mailto:MURUGANVV@nestec.net]
Sent: Thursday, January 09, 2003 9:04 AM
To: Log4J Users List
Subject: RE: how to delete the log file with out stopping the logger appli
cation
Hi,
Thanks for the reply.
I want to keep all the log in a single file.
Rami:
1> To my knowledge you cannot log to a file and at the same time want to
delete it or to move it - since it's locked.
If you insist on 1 file think of a post process that takes several files and
appends them into 1. This way you can remove/move the inactive files and
create 1 file of all the ones you wish to keep.
BTW - how can I specify the DailyRollingFileAppender option in a logger
property file.
I am using
Rami:
2> Take a look at : http://www.vipan.com/htdocs/log4jhelp.html
PropertyConfigurator.configure("c:/logger.property");
so that user can modify the "logger.property" file for changing the logging
options with out modifying the source code.
So please specify how I can specify the "DailyRollingFileAppender " option
in the property file.
Can you please send some sample property files for the logger.
Regards,
Murugan
-----Original Message-----
From: Abramson, Rami [mailto:rami.abramson@terayon.com]
Sent: Thursday, January 09, 2003 12:46 PM
To: 'Log4J Users List'
Subject: RE: how to delete the log file with out stopping the logger
appli cati on
Try using a RollingFileAppender or DailyRollingFileAppender.
After the file
rolls you can delete the previous files.
all the best,
Rami A.
-----Original Message-----
From: MURUGAN V V [mailto:MURUGANVV@nestec.net]
Sent: Thursday, January 09, 2003 8:51 AM
To: log4j-user@jakarta.apache.org
Subject: how to delete the log file with out stopping the
logger applicati
on
Hi,
I am using "jakarta-log4j-1.2.7" for logging in my application.
My application is a windows service. So it is running 24 hours.
My problem is, I cannot delete the log file while the application is
running.
Some times I need to delete the log file without stopping my
application.
Can you specify how I can delete the log file with out stopping my
application.
Thanks in advance,
Murugan.
--
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>
--
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>