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

Expand UserAppDataPath in filename

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      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. UserAppDataPathPatternConverter.cs
          2 kB
          André Normann
        2. PatternString.cs
          18 kB
          André Normann

          Activity

            People

            • Assignee:
              ron Ron Grabowski
              Reporter:
              anormann André Normann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: