예제 #1
0
 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);
 }
예제 #2
0
파일: Program.cs 프로젝트: icgam/Easify
        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);
        }