You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
In my project need to override UdpAppender properties. I added the 'PropertyOverrides' parameters to the app.settings.
I started the logger like this:
var loggingOptions = this.Configuration.GetSection("Log4NetCore").Get<Log4NetProviderOptions>();
loggerFactory.AddLog4Net(loggingOptions);
In debug I can see that the prameter 'loggingOptions' include the correct 'PropertyOverrides' from the app.settings.
Then I break in logger.LogInformation("...");
When I check in logger, I can see that 'Microsoft.Extensions.Logging.Log4Net.AspNetCore' include 'Options' but the PropertyOverrides in it is empty.
Is there away to make sure that the property overrides is applied and works ?
The text was updated successfully, but these errors were encountered:
Hello,
In my project need to override UdpAppender properties. I added the 'PropertyOverrides' parameters to the app.settings.
I started the logger like this:
In debug I can see that the prameter 'loggingOptions' include the correct 'PropertyOverrides' from the app.settings.
Then I break in
logger.LogInformation("...");
When I check in logger, I can see that 'Microsoft.Extensions.Logging.Log4Net.AspNetCore' include 'Options' but the PropertyOverrides in it is empty.
Is there away to make sure that the property overrides is applied and works ?
The text was updated successfully, but these errors were encountered: