Különböző logok, különböző file-ba

This commit is contained in:
2025-04-14 20:15:00 +02:00
parent ca71bd2194
commit 380b6ac030
4 changed files with 85 additions and 9 deletions
+35 -2
View File
@@ -24,11 +24,44 @@
{
"Name": "File",
"Args": {
"path": "logs/log-.log",
"path": "Logs/log-.log",
"rollingInterval": "Day"
}
},
{
"Name": "Logger",
"Args": {
"filter": "Equals(TAG, 'AuditFlow')",
"writeTo": [
{
"Name": "File",
"Args": {
"path": "Logs/AuditFlow/log-.txt",
"rollingInterval": "Day",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
},
{
"Name": "Logger",
"Args": {
"filter": "Equals(TAG, 'BusinessFlow')",
"writeTo": [
{
"Name": "File",
"Args": {
"path": "Logs/BusinessFlow/log-.txt",
"rollingInterval": "Day",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
}
]
],
"Enrich": [ "FromLogContext" ]
},
"AllowedHosts": "*",
"Kestrel": {