Non-host console app logging

using Microsoft.Extensions.Logging;
 
using var loggerFactory = LoggerFactory.Create(builder => { 
	builder 
		.AddFilter("Microsoft", LogLevel.Warning) 
		.AddFilter("System", LogLevel.Warning) 
		.AddFilter("LoggingConsoleApp.Program", LogLevel.Debug) 
		.AddConsole(); 
});
ILogger logger = loggerFactory.CreateLogger<Program>(); 
logger.LogInformation("Example log message");
 

📇Additional Metadata