You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
2 years ago
|
{
|
||
|
"Serilog": {
|
||
|
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.MSSqlServer" ],
|
||
|
"MinimumLevel": {
|
||
|
"Default": "Debug",
|
||
|
"Override": {
|
||
|
"Microsoft": "Information",
|
||
|
"Microsoft.EntityFrameworkCore": "Warning"
|
||
|
}
|
||
|
},
|
||
|
"WriteTo": [
|
||
|
{
|
||
|
"Name": "Async",
|
||
|
"Args": {
|
||
|
"configure": [
|
||
|
{
|
||
|
"Name": "File",
|
||
|
"Args": {
|
||
|
"path": "Logs//core_.log",
|
||
|
"rollingInterval": "Day",
|
||
|
"restrictedToMinimumLevel": "Debug"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"Name": "Console",
|
||
|
"Args": {
|
||
|
"restrictedToMinimumLevel": "Debug",
|
||
|
"outputTemplate": "{Timestamp:HH:mm:ss.fff} [{Level:u3}] {Message} {NewLine}{Exception}"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"Name": "MSSqlServer",
|
||
|
"Args": {
|
||
|
"connectionString": "Server=dev.ccwin-in.com,13319;Database=AbpAuditLogging;uid=ccwin-in;pwd=Microsoft@2022;Packet Size=512;",
|
||
|
"tableName": "PrintLogs",
|
||
|
"autoCreateSqlTable": true
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ]
|
||
|
}
|
||
|
}
|