logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prakash Kadam" <pka...@nulinkinc.com>
Subject RE: Can I have time stamp in log file name?
Date Tue, 22 Feb 2005 03:22:54 GMT

	Hi Ambarish,
	    Instead of using RollingFIleAppender, You use DailyRollingFileAppender, where you can
specify name of file and also after what interval y want back up.
	for example.  
	        At approximately 11:23,000, on March 9th, 2001, /foo/bar.log will be copied to /foo/bar.log.2001-03-09-11-22.
Logging for the minute of 11:23 (9th of March) will be output to /foo/bar.log until it is
rolled over the next minute.
	That will solve your problem
	Prakash K.
	-----Original Message----- 
	From: Ambarish Mitra [mailto:ambarish_mitra@persistent.co.in] 
	Sent: Mon 2/21/2005 6:37 PM 
	To: log4cxx-user@logging.apache.org 
	Subject: Can I have time stamp in log file name?

View raw message