From f8238da5388ab27002cb4accf6a23249ee1719da Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Tue, 29 Jul 2025 15:25:51 +0800 Subject: [PATCH] =?UTF-8?q?log=EF=BC=9Awrite=20start-stop=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/InterfaceForward.Api/InterfaceForwardApiModule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs index f54647c..97c8a5a 100644 --- a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs +++ b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs @@ -5,6 +5,7 @@ using Fake.AspNetCore.Mvc.Filters; using Fake.Autofac; using Fake.Modularity; using InterfaceForward.Application; +using InterfaceForward.Domain.Shared.Helpers; namespace InterfaceForward.Api; @@ -65,5 +66,12 @@ public class InterfaceForwardApiModule : FakeModule app.UseRouting(); app.UseCors(DefaultCorsPolicyName); + + LogHelper.Info("Application started", true); + } + + public override void Shutdown(ApplicationShutdownContext context) + { + LogHelper.Info("Application stoped", true); } } \ No newline at end of file