Answers for "loggerfactory asp.net core 3.0"

C#
0

loggerfactory asp.net core 3.0

using (var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole()))
{
    // use loggerFactory
}
Posted by: Guest on December-20-2020
-1

asp.net core logger in startup

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger<Startup> logger)
{
    logger.LogInformation("Configure called");

    // …
}
Posted by: Guest on November-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language