Log4net
  1. Log4net
  2. LOG4NET-25

RollingFileAppender can fail if RollOverIfDateBoundaryCrossing required

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

        Issue Links

          Activity

          Hide
          Nicko Cadell added a comment -

          Fixed RollingFileAppender by fully qualifying the File property value before calling ExistingInit in the ActivateOptions method.

          Show
          Nicko Cadell added a comment - Fixed RollingFileAppender by fully qualifying the File property value before calling ExistingInit in the ActivateOptions method.
          Hide
          Nicko Cadell added a comment -

          Fixed by LOG4NET-25

          Show
          Nicko Cadell added a comment - Fixed by LOG4NET-25

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development