[ 
https://issues.apache.org/jira/browse/LOG4NET-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Grabowski resolved LOG4NET-188.
-----------------------------------

    Resolution: Cannot Reproduce

You mentioned the rolling works fine in one project but not the other which 
leads me to believe that there is a problem with your configuration. There have 
been improvements to the RollingFileAppender. Try running your code against the 
latest versison and re-open this ticket if you're still having issues.

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

Reply via email to