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

Performance issues in logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.8
    • 2.0.8, 2.0.10
    • Appenders
    • None

    Description

      In our application we are using remoting appender to log the traces from mutiple processes in single log file. We have below property in config file because properties are getting used-

      <Fix value="Partial" />
      As per the Log4net implementation username is fetched for each log call from API -WindowsIdentity.GetCurrent()). This is causing performance issues in our application.

      private void CreateCompositeProperties()

      { eventProperties[UserNameProperty] = UserName; }

      public string UserName =>
      m_data.UserName ??= TryGetCurrentUserName() ?? SystemInfo.NotAvailableText;

      Please let us know if there is any option to configure the usage of username?
      If not available then we propose below solutions-
      1)username usage should be configurable.
      2)username should be cached and API WindowsIdentity.GetCurrent should not be invoked every time

      Attachments

        Activity

          People

            Unassigned Unassigned
            neetujain Neetu Jain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: