appsettings.json
"AllowedHosts": "*", "Serilog": { "Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async" ], "MinimumLevel": { "Default": "Information" }, "Override": { "Microsoft": "Warning", "System": "Warning", "Microsoft.AspNetCore": "Warning" }, "WriteTo": [ { "Name": "AsyncFile", "Args": { "configure": [ { "Name": "File", "Args": { "path": "Logs/serilogDemo_.log", "rollingInterval": "Day" } } ] } } ], "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ], "Properties": { "Application": "KVMServerApi" } },
|