diff --git a/Common/lib/HybirdFrameworkCore.dll b/Common/lib/HybirdFrameworkCore.dll index 3b6c93f..e5693b3 100644 Binary files a/Common/lib/HybirdFrameworkCore.dll and b/Common/lib/HybirdFrameworkCore.dll differ diff --git a/Common/lib/HybirdFrameworkDriver.dll b/Common/lib/HybirdFrameworkDriver.dll index 6896be2..3ffe052 100644 Binary files a/Common/lib/HybirdFrameworkDriver.dll and b/Common/lib/HybirdFrameworkDriver.dll differ diff --git a/Service/MyTask/ZipLogTask.cs b/Service/MyTask/ZipLogTask.cs new file mode 100644 index 0000000..84a7cbb --- /dev/null +++ b/Service/MyTask/ZipLogTask.cs @@ -0,0 +1,9 @@ +using HybirdFrameworkCore.Autofac.Attribute; +using HybirdFrameworkCore.AutoTask; + +namespace Service.MyTask; + +[Scope] +public class ZipLogTask : LogZipTask +{ +} diff --git a/WebStarter/appsettings.dev.json b/WebStarter/appsettings.dev.json index de69972..f5f2793 100644 --- a/WebStarter/appsettings.dev.json +++ b/WebStarter/appsettings.dev.json @@ -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 } } \ No newline at end of file diff --git a/WebStarter/appsettings.prod.json b/WebStarter/appsettings.prod.json index d6398d1..0bae79d 100644 --- a/WebStarter/appsettings.prod.json +++ b/WebStarter/appsettings.prod.json @@ -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 } }