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 "Kam Fung (JIRA)" <ji...@apache.org> on 2005/07/20 11:50:45 UTC

[jira] Created: (LOG4NET-41) RollingFileAppender roll over date fail

RollingFileAppender roll over date fail
---------------------------------------

         Key: LOG4NET-41
         URL: http://issues.apache.org/jira/browse/LOG4NET-41
     Project: Log4net
        Type: Bug
  Components: Appenders  
    Versions: 1.2.9    
 Environment: Windows 2000, IIS5
    Reporter: Kam Fung


I tried to use RollingFileAppender in an Web Application. I set the file size limit to 10k and date pattern yyyymmdd.
I was able to create the logfile.txt and when it is over 10k, it can be moved to logfile.txt.1. (This mean there is no access right problem)
However, if I then change the clock of the computer to one day later, RollingFileAppender try to rename logfile.txt to logfile.txt20050721

log4net: RollingFileAppender: Moving [c:\inetpub\wwwroot\virtual\logfile.txt.1] -> [logfile.txt20050721.1]
Obviously the "destination" should be a full path c:\inetpub\wwwroot\virtual\logfile.txt20050721.1

FIX suggestion
in RollingFileAppender.cs, line 1018 and 1023, call ConvertToFullPath(to) before calling RollFile.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (LOG4NET-41) RollingFileAppender roll over date fail

Posted by "Nicko Cadell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LOG4NET-41?page=all ]
     
Nicko Cadell resolved LOG4NET-41:
---------------------------------

    Fix Version: 1.2.10
     Resolution: Duplicate
      Assign To: Nicko Cadell

This issue is fixed by LOG4NET-25

> RollingFileAppender roll over date fail
> ---------------------------------------
>
>          Key: LOG4NET-41
>          URL: http://issues.apache.org/jira/browse/LOG4NET-41
>      Project: Log4net
>         Type: Bug
>   Components: Appenders
>     Versions: 1.2.9
>  Environment: Windows 2000, IIS5
>     Reporter: Kam Fung
>     Assignee: Nicko Cadell
>      Fix For: 1.2.10

>
> I tried to use RollingFileAppender in an Web Application. I set the file size limit to 10k and date pattern yyyymmdd.
> I was able to create the logfile.txt and when it is over 10k, it can be moved to logfile.txt.1. (This mean there is no access right problem)
> However, if I then change the clock of the computer to one day later, RollingFileAppender try to rename logfile.txt to logfile.txt20050721
> log4net: RollingFileAppender: Moving [c:\inetpub\wwwroot\virtual\logfile.txt.1] -> [logfile.txt20050721.1]
> Obviously the "destination" should be a full path c:\inetpub\wwwroot\virtual\logfile.txt20050721.1
> FIX suggestion
> in RollingFileAppender.cs, line 1018 and 1023, call ConvertToFullPath(to) before calling RollFile.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira