Non-host console app logging Language:: CSharp Type:: Back-end Context:: Description – Snippet 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"); Dependencies:: Logging in C# - .NET | Microsoft Learn 📇Additional Metadata 📁Type::snippet 🏷️Tags:: 📡Status::🌲