You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If UseSerilog() is used to register a configured logger so that it resolves to Microsoft.Extensions.Logging.ILogger, then what is the recommended way to re-register it once the application is running and a new configured logger is used to replace the existing one? I am dynamically building a new logger since I also need to change source context overrides at any given point.
The text was updated successfully, but these errors were encountered:
Hi! Check out https://github.com/nblumhardt/serilog-reload for an example project showing how this might be done. Still uncertain how/when this will be integrated into Serilog.AspNetCore, but considering it for .NET 5.
If UseSerilog() is used to register a configured logger so that it resolves to Microsoft.Extensions.Logging.ILogger, then what is the recommended way to re-register it once the application is running and a new configured logger is used to replace the existing one? I am dynamically building a new logger since I also need to change source context overrides at any given point.
The text was updated successfully, but these errors were encountered: