logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject cvs commit: logging-log4net/src/Appender RollingFileAppender.cs
Date Sun, 17 Apr 2005 00:31:49 GMT
nicko       2005/04/16 17:31:49

  Modified:    src/Appender RollingFileAppender.cs
  Log:
  Fix LOG4NET-25.  RollingFileAppender fails if RollOverIfDateBoundaryCrossing required and
current directory is not ApplicationBase directory.
  
  Revision  Changes    Path
  1.20      +7 -1      logging-log4net/src/Appender/RollingFileAppender.cs
  
  Index: RollingFileAppender.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Appender/RollingFileAppender.cs,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- RollingFileAppender.cs	7 Feb 2005 22:33:34 -0000	1.19
  +++ RollingFileAppender.cs	17 Apr 2005 00:31:49 -0000	1.20
  @@ -961,7 +961,13 @@
   
   			using(SecurityContext.Impersonate(this))
   			{
  -				m_baseFileName = ConvertToFullPath(base.File.Trim());
  +				// Must convert the FileAppender's m_filePath to an absolute path before we
  +				// call ExistingInit(). This will be done by the base.ActivateOptions() but
  +				// we need to duplicate that functionality here first.
  +				base.File = ConvertToFullPath(base.File.Trim());
  +
  +				// Store fully qualified base file name
  +				m_baseFileName = base.File;
   			}
   
   			ExistingInit();
  
  
  

Mime
View raw message