减少TraceItem数据量较大时的性能浪费
智能大石头 authored at 2024-10-22 08:41:14
638.00 B
Stardust
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using NewLife.Log;

namespace Stardust.Web
{
    public class Program
    {
        public static void Main(String[] args)
        {
            XTrace.UseConsole();

            CreateWebHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateWebHostBuilder(String[] args)
        {
            var builder = Host.CreateDefaultBuilder(args);
            builder.ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseStartup<Startup>();
            });

            return builder;
        }
    }
}