|
@@ -26,9 +26,6 @@
|
|
|
"theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- "Name": "Exceptionless"
|
|
|
- }
|
|
|
//{
|
|
|
// "Name": "Exeptionless",
|
|
|
// "Args": {
|
|
@@ -43,7 +40,18 @@
|
|
|
// "path": "logs/log-.txt",
|
|
|
// "rollingInterval": "Day"
|
|
|
// }
|
|
|
- //}
|
|
|
+ //},
|
|
|
+ {
|
|
|
+ "Name": "MongoDBBson",
|
|
|
+ "Args": {
|
|
|
+ "databaseUrl": "mongodb://192.168.100.121:27017/hotline_logs",
|
|
|
+ "collectionName": "logs",
|
|
|
+ "cappedMaxSizeMb": "1024",
|
|
|
+ "cappedMaxDocuments": "50000",
|
|
|
+ "rollingInterval": "Month",
|
|
|
+ "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}"
|
|
|
+ }
|
|
|
+ }
|
|
|
],
|
|
|
"Enrich": [ "FromLogContext", "WithSpan" ]
|
|
|
},
|
|
@@ -53,11 +61,12 @@
|
|
|
"Authorize": true,
|
|
|
"ReceiveKey": "E1BBD1BB-A269-44",
|
|
|
"SendKey": "2A-BA92-160A3B1D",
|
|
|
- "Expired": 86400 //认证过期时间(秒)
|
|
|
+ "Expired": 1440 //认证过期时间(秒)
|
|
|
},
|
|
|
"ConnectionStrings": {
|
|
|
"Hotline": "server=192.168.100.121;port=3306;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
|
|
|
- "Redis": "192.168.100.223:6379"
|
|
|
+ "Redis": "192.168.100.223:6379",
|
|
|
+ "MongoDB": "mongodb://192.168.100.121:27017"
|
|
|
},
|
|
|
"Swagger": true,
|
|
|
"Cors": {
|
|
@@ -73,7 +82,7 @@
|
|
|
"RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
|
|
|
},
|
|
|
"Exceptionless": {
|
|
|
- "InUse": true,
|
|
|
+ "InUse": false,
|
|
|
"ServerUrl": "http://log.fw.com",
|
|
|
"ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV"
|
|
|
},
|