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

Associate 'File' alias with FileLoggingProvider #4

Closed
VitaliyMF opened this issue Jan 11, 2018 · 1 comment
Closed

Associate 'File' alias with FileLoggingProvider #4

VitaliyMF opened this issue Jan 11, 2018 · 1 comment
Assignees

Comments

@VitaliyMF
Copy link
Contributor

In MVC Core 2 logging infrastructure uses https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging/ProviderAliasAttribute.cs to determine provider alias for filtering rules.
Lets use 'File' alias, this will allow to use "File": { "LogLevel": { } } in configuration section loaded with logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));

@VitaliyMF
Copy link
Contributor Author

Done, now it is possible to specify filtering rules in "File" config section in the same way as for "Console" or "Debug".

Shipped in 1.0.4

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

1 participant