{ "Serilog": { "Using": [ "Serilog.Enrichers.Span", "Serilog.Sinks.Console", "Serilog.Sinks.Exceptionless" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information", "Microsoft.AspNetCore.Authentication": "Debug", "Microsoft.AspNetCore": "Warning", "Microsoft.AspNetCore.SignalR": "Debug", "Microsoft.AspNetCore.Http.Connections": "Debug", "System": "Warning" } }, "WriteTo": [ { "Name": "Console", "Args": { //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}", "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}", "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console" } }, { "Name": "Exceptionless" } //{ // "Name": "File", // "Args": { // "path": "logs/log-.txt", // "rollingInterval": "Day" // } //} ], "Enrich": [ "FromLogContext", "WithSpan" ] }, "AllowedHosts": "*", "DeviceConfigs": { "Address": "http://192.168.100.100/xml", "Authorize": true, "ReceiveKey": "E1BBD1BB-A269-44", "SendKey": "2A-BA92-160A3B1D", "Expired": 86400 //认证过期时间(秒) }, "ConnectionStrings": { "Hotline": "server=db.fengwo.com;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;", "Redis": "192.168.100.223:6379" }, "Swagger": true, "Cors": { "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ] }, "WorkTimeSettings": { "MorningBegin": "08:00", "MorningEnd": "12:00", "AfterBegin": "15:00", "AfterEnd": "21:00", "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ], "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd", "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e" }, "Exceptionless": { "ServerUrl": "http://192.168.100.217:5000", "ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV" } }