示例#1
0
        public static void Main(string[] args)
        {
            var config = ConfigStartup.GetConfiguration(args);

            Log.Logger = LogConfig.CreateSerilogLogger(config, AppName);
            Log.Information("CreateHostBuilder ({ApplicationContext})...", AppName);
            CreateHostBuilder(args, config).Build().Run();
        }
示例#2
0
        public static void Main(string[] args)
        {
            var config = GetConfiguration(args);

            Log.Logger = LogConfig.CreateSerilogLogger(config, AppName);

            Log.Information("CreateWebHostBuilder ({ApplicationContext})...", "Account");
            Log.Information($"path:{ApplicationEnvironment.ApplicationBasePath}");
            CreateWebHostBuilder(args, config).Build().Run();
        }