Give logger provider a ProviderAlias attribute
chunliu opened this issue · comments
Please add a ProviderAlias
attribute to the logger provider so that a shorter name can be used in appsettings.json.
Sadly doing that would require adding a dependency on Microsoft.Extensions.Logging
, where not required today.
If I want to use a different log level for logging default and this logger provider, is there a better way other than using the long name in the appsettings.json? And what's the concern to have the dependency on Microsoft.Extensions.Logging
? Just curious...
Provider Alias has been added to v3.