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

Allow user to override root directory for fileappenders

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.9
    • Appenders
    • None
    • From sourceforge - 804606

    Description

      When creating a COM-exposed object (or COM+), you can't
      readily use a relative file path in your fileappenders
      since log4net is hardcoded to use
      AppDomain.CurrentDomain.BaseDirectory which for a COM+
      component hosted in dllhost would be systemroot\system32.
      I couldn't find a workaround save for regenerating the
      xml configuration.
      A call to set the root directory would be great.
      If there was a way to get a list of all appenders after
      configuration, maybe there could be a workaround.

      Anonymous

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nicko Nicko Cadell

            Dates

              Created:
              Updated:

              Slack

                Issue deployment