2019-07-23 22:38:49 +02:00
|
|
|
|
using Bit.Core.Utilities;
|
|
|
|
|
using Microsoft.AspNetCore;
|
2018-03-21 17:57:43 +01:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2019-07-23 22:38:49 +02:00
|
|
|
|
using Serilog.Events;
|
2018-03-21 17:57:43 +01:00
|
|
|
|
|
|
|
|
|
namespace Bit.Admin
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
WebHost
|
|
|
|
|
.CreateDefaultBuilder(args)
|
|
|
|
|
.UseStartup<Startup>()
|
2019-07-23 22:38:49 +02:00
|
|
|
|
.ConfigureLogging((hostingContext, logging) =>
|
|
|
|
|
logging.AddSerilog(hostingContext, e => e.Level >= LogEventLevel.Error))
|
2018-03-21 17:57:43 +01:00
|
|
|
|
.Build()
|
|
|
|
|
.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|