diff --git a/src/Mockaco/Program.cs b/src/Mockaco/Program.cs index 05816a3..8447473 100644 --- a/src/Mockaco/Program.cs +++ b/src/Mockaco/Program.cs @@ -48,9 +48,9 @@ public static IHostBuilder CreateHostBuilder(string[] args) => configuration.AddCommandLine(args, switchMappings); }) - .UseSerilog((context, loggerConfiguration) => loggerConfiguration.ReadFrom.Configuration(context.Configuration)) .UseStartup(); - }); + }) + .UseSerilog((context, loggerConfiguration) => loggerConfiguration.ReadFrom.Configuration(context.Configuration)); private static CommandLineBuilder CreateCommandLineBuilder(string[] args, IHost host) {