A:添加日志类

This commit is contained in:
jimmy committed 2025-05-26 23:10:26 +08:00
1 parent eaaedd48cf
commit efcdf01436
14 files changed
+666 -4

No files matched your search

+12
View File
@@ -2,5 +2,17 @@
"AppSettings": {
"AppName": "MyApp",
"MaxConnection": 10
},
"Logging": {
"EnableConsole": true,
"EnableFile": true,
"LogPath": "logs",
"MaxFileSizeMB": 1,
"RetentionDays": 30,
"CompressDaysThreshold": 3,
"MinimumLevel": "Information",
"OutputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
"UseJsonFormat": false,
"CompressCheckIntervalHours": 24
}
}