serilog / serilog-extensions-hosting

Serilog logging for Microsoft.Extensions.Hosting
Apache License 2.0
141 stars 34 forks source link

ReloadableLogger not allowed in netstandard2.0 projects #50

Closed dwoldo closed 3 years ago

dwoldo commented 3 years ago

What is the goal of preventing use of ReloadableLogger in netstandard projects (Serilog.Extensions.Hosting.csproj and LoggerConfigurationExtensions.cs)? I am building a common library that should be reused across dozens of projects to simplify and standardize logging for both worker service and ASP.NET Core apps.

To work around this I am forced to target a dotnet TFM which causes compatibility issues where consuming projects use older TFMs.

nblumhardt commented 3 years ago

Hi! ReloadableLogger relies on default interface implementations, which aren't available on older CLRs (aren't supported on .NET Framework at all). HTH!

dwoldo commented 3 years ago

Certainly does, thank you @nblumhardt .