logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1437281 - /logging/log4net/trunk/src/Appender/RollingFileAppender.cs
Date Wed, 23 Jan 2013 07:45:04 GMT
Author: dpsenner
Date: Wed Jan 23 07:45:03 2013
New Revision: 1437281

URL: http://svn.apache.org/viewvc?rev=1437281&view=rev
Log:
LOG4NET-369 fix the rolling file appender to consider preserveLogFileNameExtension when rolling
over time after an application restart

Modified:
    logging/log4net/trunk/src/Appender/RollingFileAppender.cs

Modified: logging/log4net/trunk/src/Appender/RollingFileAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/RollingFileAppender.cs?rev=1437281&r1=1437280&r2=1437281&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/RollingFileAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/RollingFileAppender.cs Wed Jan 23 07:45:03 2013
@@ -813,7 +813,7 @@ namespace log4net.Appender
 
 					if (!(last.ToString(m_datePattern,System.Globalization.DateTimeFormatInfo.InvariantInfo).Equals(m_now.ToString(m_datePattern,
System.Globalization.DateTimeFormatInfo.InvariantInfo)))) 
 					{
-						m_scheduledFilename = m_baseFileName + last.ToString(m_datePattern, System.Globalization.DateTimeFormatInfo.InvariantInfo);
+						m_scheduledFilename = CombinePath(m_baseFileName, last.ToString(m_datePattern, System.Globalization.DateTimeFormatInfo.InvariantInfo));
 						LogLog.Debug(declaringType, "Initial roll over to ["+m_scheduledFilename+"]");
 						RollOverTime(false);
 						LogLog.Debug(declaringType, "curSizeRollBackups after rollOver at ["+m_curSizeRollBackups+"]");



Mime
View raw message