-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello,
Can this sink be configured using IConfiguration, basically from appsettings.json, similar how other sinks can be configured?
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.File"
],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"System": "Warning",
"System.Net.Http": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Literate, Serilog.Sinks.Console",
"outputTemplate": "[{Timestamp:HH:mm:ss} {MessageTemplate} {Level:u3}] {SourceContext} {Message:lj} {Exception}{NewLine}",
"restrictedToMinimumLevel": "Information"
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithThreadId",
"WithProcessName"
]
}
Metadata
Metadata
Assignees
Labels
No labels