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(); }
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(); }