nreco / logging

Generic file logger for .NET Core (FileLoggerProvider) with minimal dependencies
MIT License
284 stars 56 forks source link

Alternative handling of IConfiguration in AddFile #50

Closed VitaliyMF closed 1 year ago

VitaliyMF commented 1 year ago

Currently AddFile(IConfiguraton) methods expect that passed config section is a parent (usually, "Logging" section) for "File" section and this section name ("File") is hardcoded. It might be a need to use another section name, or have more than one file logging provider that are configured in appsettings.json. It easy to modify configuration processing in this way:

VitaliyMF commented 1 year ago

Shipped in 1.1.6