58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"ConnectionStrings": {
|
|
"Default": "server=localhost;user=root;password=root;database=qrcode"
|
|
},
|
|
"Serilog": {
|
|
"Using": [ "SeriLog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Sinks.Async" ],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"System": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console"
|
|
},
|
|
{
|
|
"Name": "Async",
|
|
"Args": {
|
|
"configure": [
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "Logs/log.txt",
|
|
"rollingInterval": "Day"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
|
|
"Properties": {
|
|
"Application": "SerilogExample"
|
|
}
|
|
},
|
|
"Redis": {
|
|
"Default": {
|
|
"Connection": "127.0.0.1:6379",
|
|
"InstanceName": "local",
|
|
"DefaultDB": 8
|
|
}
|
|
},
|
|
"Hosting": {
|
|
"BaseUrl": "http://localhost:5000/",
|
|
"IsForwarded": false
|
|
}
|
|
}
|