日志管理

master
rszn 4 months ago
parent e65b91b540
commit b63aa44967

@ -0,0 +1,9 @@
using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkCore.AutoTask;
namespace Service.MyTask;
[Scope]
public class ZipLogTask : LogZipTask
{
}

@ -87,5 +87,23 @@
},
"task": {
"enable": false
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://*:5035"
}
}
},
"Log": {
"Src": "D:\\RiderProjects\\hn_back_charger\\WebStarter\\bin\\Debug\\net6.0\\logs",
"Dest": "D:\\zip",
"Days": 7
}
}

@ -121,5 +121,23 @@
},
"task": {
"enable": true
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://*:5035"
}
}
},
"Log": {
"Src": "D:\\RiderProjects\\hn_back_charger\\WebStarter\\bin\\Debug\\net6.0\\logs",
"Dest": "D:\\zip",
"Days": 7
}
}

Loading…
Cancel
Save