5 changed files with 124 additions and 2 deletions
-
3src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
-
2src/Shentun.WebPeis.Domain/AppointPatientRegisters/AppointPatientRegisterManager.cs
-
8src/Shentun.WebPeis.HttpApi.Host/Program.cs
-
111src/Shentun.WebPeis.HttpApi.Host/Serilog.json
-
2src/Shentun.WebPeis.HttpApi.Host/Shentun.WebPeis.HttpApi.Host.csproj
@ -0,0 +1,111 @@ |
|||
{ |
|||
"Serilog": { |
|||
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Settings.Configuration", "Serilog.Sinks.PostgreSQL" ], |
|||
"MinimumLevel": { |
|||
"Default": "Debug", |
|||
"Override": { |
|||
"Default": "Warning", |
|||
"System": "Warning", |
|||
"Microsoft": "Warning" |
|||
} |
|||
}, |
|||
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ], |
|||
"WriteTo": [ |
|||
{ |
|||
"Name": "Console", |
|||
"Args": { |
|||
"restrictedToMinimumLevel": "Information", |
|||
"theme": "Serilog.Sinks.SystemConsole.Themes.SystemConsoleTheme::Literate, Serilog.Sinks.Console" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "File", |
|||
"Args": { |
|||
"path": "{CurrentDirectory}/logs/trace/trace-.log", |
|||
"rollingInterval": "Day", |
|||
"fileSizeLimitBytes": 52428800, |
|||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{ThreadId} {Level:u3}] {Message:lj} {NewLine}{Exception}", |
|||
"restrictedToMinimumLevel": "Verbose" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "File", |
|||
"Args": { |
|||
"path": "{CurrentDirectory}/logs/debug/debug-.log", |
|||
"rollingInterval": "Day", |
|||
"fileSizeLimitBytes": 52428800, |
|||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{ThreadId} {Level:u3}] {Message:lj} {NewLine}{Exception}", |
|||
"restrictedToMinimumLevel": "Debug" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "File", |
|||
"Args": { |
|||
"path": "{CurrentDirectory}/logs/info/info-.log", |
|||
"rollingInterval": "Day", |
|||
"fileSizeLimitBytes": 52428800, |
|||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{ThreadId} {Level:u3}] {Message:lj} {NewLine}{Exception}", |
|||
"restrictedToMinimumLevel": "Information" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "File", |
|||
"Args": { |
|||
"path": "{CurrentDirectory}/logs/warning/warning-.log", |
|||
"rollingInterval": "Day", |
|||
"fileSizeLimitBytes": 52428800, |
|||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{ThreadId} {Level:u3}] {Message:lj} {NewLine}{Exception}", |
|||
"restrictedToMinimumLevel": "Warning" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "PostgreSQL", |
|||
"Args": { |
|||
"connectionString": "Server=62.156.10.86;Port=5432;Database=WebPeis0520;User Id=postgres;Password=st123;", |
|||
"tableName": "logs", |
|||
"needAutoCreateTable": true, |
|||
//"columnOptionsSection": { |
|||
// "disableTriggers": true, |
|||
// "standardColumnOptions": { |
|||
// "additionalInformation": true, |
|||
// "properties": { |
|||
// "additionalInformation": true |
|||
// } |
|||
// } |
|||
//}, |
|||
"restrictedToMinimumLevel": "Warning", |
|||
"batchPostingLimit": 100, |
|||
"period": "0.00:00:30", |
|||
"formatProvider": "Serilog.Sinks.PostgreSQL.ColumnWriterSettingsColumnWriterSettings, Serilog.Sinks.PostgreSQL" |
|||
} |
|||
}, |
|||
{ |
|||
"Name": "File", |
|||
"Args": { |
|||
"path": "{CurrentDirectory}/logs/fatal/fatal-.log", |
|||
"rollingInterval": "Day", |
|||
"fileSizeLimitBytes": 52428800, |
|||
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{ThreadId} {Level:u3}] {Message:lj} {NewLine}{Exception}", |
|||
"restrictedToMinimumLevel": "Fatal" |
|||
} |
|||
} |
|||
] |
|||
//"Filter": [ |
|||
// { |
|||
// "Name": "With", |
|||
// "Args": { |
|||
// "filter": { |
|||
// "type": "SpaceNation.GameServer.Utility.Serilog.CustomFilter, spacenation.game.application.server", |
|||
// "levelFilter": "Verbose" |
|||
// } |
|||
// } |
|||
// } |
|||
//], |
|||
//"LogFilterKeys": [ |
|||
// "Orleans", |
|||
// "Microsoft.AspNetCore", |
|||
// "Microsoft.Hosting", |
|||
// "Microsoft.Extensions" |
|||
//] |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue