Issue Details (XML | Word | Printable)

Key: LOG4NET-41
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Nicko Cadell
Reporter: Kam Fung
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

RollingFileAppender roll over date fail

Created: 20/Jul/05 06:40 PM   Updated: 23/Jul/05 05:02 AM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Environment: Windows 2000, IIS5
Issue Links:
Duplicate
 

Resolution Date: 23/Jul/05 05:02 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicko Cadell made changes - 23/Jul/05 05:01 AM
Field Original Value New Value
Link This issue duplicates LOG4NET-25 [ LOG4NET-25 ]
Nicko Cadell made changes - 23/Jul/05 05:02 AM
Resolution Duplicate [ 3 ]
Assignee Nicko Cadell [ nicko ]
Fix Version/s 1.2.10 [ 11128 ]
Status Open [ 1 ] Resolved [ 5 ]