Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-25

RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.9
    • 1.2.10
    • Appenders
    • None

    Description

      RollingFileAppender fails if RollOverIfDateBoundaryCrossing required and current directory is not ApplicationBase directory.

      RollOverIfDateBoundaryCrossing is called before the base class (FileAppender) ActivateOptions method is called. Therefore the File property has not yet been converted to a fully qualified path. If the current directory is not the ApplicationBase directory (e.g. when running under ASP.NET) then the RollFile call will fail with the message "Source does not exist" in the internal debug log.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nicko Nicko Cadell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: