log:write start-stop log
This commit is contained in:
parent
ffe723ba8d
commit
f8238da538
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user