public static void Main(string[] args) { HostAsWeb.Run <Startup>( s => { return(s.Environment.IsDevelopment() ? s.ConfigureLogger <Startup>(c => c.UseSeq(s.Configuration.GetSection("Logging:Seq"))) : s.ConfigureLogger <Startup>(c => c.UseLoggly(s.Configuration.GetSection("Logging:Loggly")))); }, args); }
public static void Main(string[] args) { HostAsWeb.Run <Startup>( builder => builder.CustomizeBuilder(), s => { if (s.Environment.IsDevelopment() || s.Environment.IsEnvironment("INT")) { return(s.ConfigureLogger <Startup>(c => c.UseSeq(s.Configuration.GetSection("Logging:Seq")))); } return(s.ConfigureLogger <Startup>(c => c.UseLoggly(s.Configuration.GetSection("Logging:Loggly")))); }, args); }