logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radovan Raszka" <ras...@hasam.cz>
Subject RE: Current file of RollingFileAppender
Date Fri, 16 Nov 2007 06:49:25 GMT
Hello,
current file is always that one specified in File property. When rolling
is trigerred (for example date is changed), current file is renamed and
new file with name specified id File property is created.
R


________________________________

	From: Satish Musunuru [mailto:Satish.Musunuru@codeobjects.com] 
	Sent: Friday, November 16, 2007 12:52 AM
	To: log4net-user@logging.apache.org
	Subject: Current file of RollingFileAppender
	
	

	Hi, 
	  How do I get the current file that a RollingFileAppender is
writing to? If I say 
	((RollingFileAppender)appender).File; 
	I always get .txt instead of .txt.2 or .txt.3 or whatever the
current file happens to be. 

	Thanks, 
	 Satish 


Mime
View raw message