Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug PropertyOverrides #89

Open
DanBrk opened this issue Aug 6, 2020 · 0 comments
Open

Debug PropertyOverrides #89

DanBrk opened this issue Aug 6, 2020 · 0 comments
Assignees

Comments

@DanBrk
Copy link

DanBrk commented Aug 6, 2020

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 ?

@huorswords huorswords self-assigned this Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants