You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Gulden Yazgan (JIRA)" <ji...@apache.org> on 2008/12/15 20:53:44 UTC
[jira] Issue Comment Edited: (LOG4NET-188) RollingFileAppender
log.1, log.2 are not being rolled by Date
[ https://issues.apache.org/jira/browse/LOG4NET-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656726#action_12656726 ]
gyazgan edited comment on LOG4NET-188 at 12/15/08 11:52 AM:
------------------------------------------------------------------
I don't have log4Net.config. I have log4net.xml on the same folder.
was (Author: gyazgan):
Below is the log file. Thanks.
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="D:\\Apps\\Agents\\GFS\\Strategyware\\EnterpriseMQServices\\Logs\\Activity.log"/>
<appendToFile value="true"/>
<datePattern value=".MM-dd-yyyy".log""/>
<rollingStyle value="Composite"/>
<maxSizeRollBackups value="20"/>
<maximumFileSize value="15MB"/>
<StaticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d [%t] %-5p %c [%x] - %m%n"/>
</layout>
</appender>
> RollingFileAppender log.1, log.2 are not being rolled by Date
> -------------------------------------------------------------
>
> Key: LOG4NET-188
> URL: https://issues.apache.org/jira/browse/LOG4NET-188
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Environment: .NET 2005, Microsoft Windows Server 2003
> Reporter: Gulden Yazgan
> Fix For: 1.2.10
>
>
> I am using log4net.dll v1.2.0.30714. My RollingFileAppender rolls only the .log file every day but ignores the log.1, log.2 etc...
> This is only happening on my Web Service. My Windows Service project does not have this problem. It works fine with the same log4net.dll version.
> I credted the log4net.txt. I am attaching a section of it below:
> Note: By looking at the RollingFileAppeder.cs, If StaticLogFileName=true, "it is from a different date period" should not appear. Am I wrong on this?
> log4net: DOMConfigurator: Loading Appender [RollingLogFileAppender] type: [log4net.Appender.RollingFileAppender]
> log4net: DOMConfigurator: Setting Property [File] to String value [D:\Apps\Agents\GFS\Strategyware\EnterpriseMQServices\Logs\Activity.log]
> log4net: DOMConfigurator: Setting Property [AppendToFile] to Boolean value [True]
> log4net: DOMConfigurator: Setting Property [DatePattern] to String value [.MM-dd-yyyy".log"]
> log4net: DOMConfigurator: Setting Property [RollingStyle] to RollingMode value [Composite]
> log4net: DOMConfigurator: Setting Property [MaxSizeRollBackups] to Int32 value [20]
> log4net: DOMConfigurator: Setting Property [MaximumFileSize] to String value [15MB]
> log4net: DOMConfigurator: Setting Property [StaticLogFileName] to Boolean value [True]
> log4net: DOMConfigurator: Setting Property [ConversionPattern] to String value [%d [%t] %-5p %c [%x] - %m%n]
> log4net: DOMConfigurator: Setting Property [Layout] to object [log4net.Layout.PatternLayout]
> log4net: RollingFileAppender: Type = [0], r0 = [.12-31-1969.log], r1 = [.12-31-1969.log]
> log4net: RollingFileAppender: Type = [1], r0 = [.12-31-1969.log], r1 = [.12-31-1969.log]
> log4net: RollingFileAppender: Type = [2], r0 = [.12-31-1969.log], r1 = [.01-01-1970.log]
> log4net: RollingFileAppender: Searching for existing files in [D:\Apps\Agents\GFS\Strategyware\EnterpriseMQServices\Logs]
> log4net: RollingFileAppender: Ignoring file [activity.log.1] because it is from a different date period
> log4net: RollingFileAppender: Ignoring file [activity.log.2] because it is from a different date period
> log4net: RollingFileAppender: Ignoring file [activity.log.3] because it is from a different date period
> log4net: RollingFileAppender: Ignoring file [activity.log.4] because it is from a different date period
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.