-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
{
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.File",
"Serilog.Enrichers.Environment",
"Serilog.Sinks.Seq"
],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Information",
"System": "Information"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "===> {Timestamp:HH:mm:ss} [{Level}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"Path": "<folder>\\ServiceReports.log",
"rollingInterval": "Day",
"flushToDiskInterval": "00:00:10",
"outputTemplate": "===> {Timestamp:HH:mm:ss} [{Level}] [{MachineName}] | {Message}{NewLine}{Exception}"
}
},
{
"Name": "Seq", // Name of the Seq sink
"Args": {
"serverUrl": "<seqHost>:5341",
"apiKey": "<apikey>"
},
"Enabled": true
}
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithThreadId"
],
"Properties": {
"Application": "ServiceReports"
}
},
...
}
Support reading enabled property to enable/disable sinks so we can deploy different config based on environment. We can for example set something like this in octopus deploy

Metadata
Metadata
Assignees
Labels
No labels