日志管理

master
rszn 5 months ago
parent 1c259ca4b8
commit be570cc21b

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

@ -27,5 +27,10 @@
} }
} }
}, },
"Log": {
"Src": "D:\\RiderProjects\\hn_back_charger\\WebStarter\\bin\\Debug\\net6.0\\logs",
"Dest": "D:\\zip",
"Days": 7
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

@ -27,5 +27,23 @@
} }
} }
}, },
"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
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

Loading…
Cancel
Save