Log4net
  1. Log4net
  2. LOG4NET-41

RollingFileAppender roll over date fail

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      Windows 2000, IIS5

      Description

      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.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          2d 10h 22m 1 Nicko Cadell 23/Jul/05 05:02
          Nicko Cadell made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Assignee Nicko Cadell [ nicko ]
          Fix Version/s 1.2.10 [ 11128 ]
          Hide
          Nicko Cadell added a comment -

          This issue is fixed by LOG4NET-25

          Show
          Nicko Cadell added a comment - This issue is fixed by LOG4NET-25
          Nicko Cadell made changes -
          Field Original Value New Value
          Link This issue duplicates LOG4NET-25 [ LOG4NET-25 ]
          Hide
          Nicko Cadell added a comment -

          Fixed by LOG4NET-25

          Show
          Nicko Cadell added a comment - Fixed by LOG4NET-25
          Kam Fung created issue -

            People

            • Assignee:
              Nicko Cadell
              Reporter:
              Kam Fung
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development