CONFIGURING A LOGGING SERVICE code example
Example 1: asp.net core logger in startup
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger<Startup> logger)
{
logger.LogInformation("Configure called");
// …
}
Example 2: appsettings in console application c#
{
"SomeKey": "This is from Config!"
}