log:write start-stop log

This commit is contained in:
xiaolipro 2025-07-29 15:25:51 +08:00
parent ffe723ba8d
commit f8238da538

View File

@ -5,6 +5,7 @@ using Fake.AspNetCore.Mvc.Filters;
using Fake.Autofac; using Fake.Autofac;
using Fake.Modularity; using Fake.Modularity;
using InterfaceForward.Application; using InterfaceForward.Application;
using InterfaceForward.Domain.Shared.Helpers;
namespace InterfaceForward.Api; namespace InterfaceForward.Api;
@ -65,5 +66,12 @@ public class InterfaceForwardApiModule : FakeModule
app.UseRouting(); app.UseRouting();
app.UseCors(DefaultCorsPolicyName); app.UseCors(DefaultCorsPolicyName);
LogHelper.Info("Application started", true);
}
public override void Shutdown(ApplicationShutdownContext context)
{
LogHelper.Info("Application stoped", true);
} }
} }