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

Reply via email to