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

Allow user to override root directory for fileappenders

    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

          People

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

            Dates

              Created:
              Updated: