123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- {
- "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": "Exeptionless",
- // "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": "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": {
- "InUse": true,
- "ServerUrl": "http://log.fw.com",
- "ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV"
- },
- "IdentityConfigs": {
- "IdentityUrl": "http://identity.fengwo.com",
- "IdentityApiUrl": "http://open.identity.fengwo.com",
- "ClientId": "hotline_server",
- "ClientSecret": "ce2fae0e-f0f6-46d6-bd79-1f1a31dff494",
- "ClientScope": "identity_admin_api"
- }
- }
|