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