init commit
This commit is contained in:
36
20220330_Vote/Ewide.Web.Entry/appsettings.json
Normal file
36
20220330_Vote/Ewide.Web.Entry/appsettings.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"System": "Warning",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information",
|
||||
"Microsoft.EntityFrameworkCore": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "logs/.log",
|
||||
"rollingInterval": "Day",
|
||||
"outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"AllowedHosts": "*",
|
||||
"CorsAccessorSettings": {
|
||||
"PolicyName": "自定义跨域策略名",
|
||||
"WithOrigins": [ "http://localhost:8080", "https://mapi.zjzwfw.gov.cn" ]
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user