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 "Ron Grabowski (JIRA)" <ji...@apache.org> on 2008/12/15 20:39:44 UTC

[jira] Commented: (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=12656718#action_12656718 ] 

Ron Grabowski commented on LOG4NET-188:
---------------------------------------

If its working fine on one project but not in another I don't think its a Major bug in the log4net codebase. Can you post your log4net.config file to the mailing list so others can try to duplicate your issue.

> 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.