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

RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: Appenders
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: