Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to add serilog to your asp.net project

    public static IHostBuilder CreateHostBuilder(string[] args) =>
        Host.CreateDefaultBuilder(args)
            .UseSerilog() // <- Add this line
            .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseStartup<Startup>();
            });
Source by nblumhardt.com #
 
PREVIOUS NEXT
Tagged: #add #serilog #project
ADD COMMENT
Topic
Name
4+1 =