Is there a property / method in Serilog where I could (programmatically) check the current configuration? (sinks, minimum level)
eg if have this config:
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.File("log.txt")
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Information)
.CreateLogger();
How could I read this config later?
(In my case the config is dynamically created outside my application)
不,没有反思的方法来检查 Serilog 配置。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.