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

Expand UserAppDataPath in filename

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.10
    • 1.2.11
    • Appenders
    • None
    • Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0

    Description

      I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.

      Here an example:

      <file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>

      Regards,
      André

      Attachments

        1. PatternString.cs
          18 kB
          André Normann
        2. UserAppDataPathPatternConverter.cs
          2 kB
          André Normann

        Activity

          People

            ron liu ron
            anormann André Normann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: