[CP] Logs
This commit is contained in:
@@ -18,13 +18,19 @@ namespace ReallifeGamemode.DataService
|
||||
BuildWebHost(args).Run();
|
||||
}
|
||||
|
||||
public static IWebHost BuildWebHost(string[] args) =>
|
||||
WebHost.CreateDefaultBuilder(args)
|
||||
.UseStartup<Startup>()
|
||||
.UseKestrel(k =>
|
||||
{
|
||||
k.Listen(IPAddress.Any, 5000);
|
||||
})
|
||||
.Build();
|
||||
public static IWebHost BuildWebHost(string[] args)
|
||||
{
|
||||
return WebHost.CreateDefaultBuilder(args)
|
||||
.ConfigureLogging((ctx, l) =>
|
||||
{
|
||||
l.AddLog4Net(Path.Combine(ctx.HostingEnvironment.ContentRootPath, "log4net.config"));
|
||||
})
|
||||
.UseStartup<Startup>()
|
||||
.UseKestrel(k =>
|
||||
{
|
||||
k.Listen(IPAddress.Any, 5000);
|
||||
})
|
||||
.Build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user