Another way.....the advantage to this one is this is a separate logger from the HostBuilder's, so it can log things before the Host is even built. It also can be used throughout the class and outside Main in Program.cs. The disadvantage is it cant use the appsettings.json file to configure it (unless someone can show me how).
public class Program { // The Program console apps private logger private static ILogger _logger; public static void Main(string[] args) { // Now create a logging object for the Program class. ILoggerFactory loggerFactory = LoggerFactory.Create(builder => builder .AddConsole() .AddDebug() ); _logger = loggerFactory.CreateLogger<Program>(); _logger.LogInformation("PROGRAM CLASS >>> The Program Console Class has started..."); } }