Skip to content

Commit 84d8aa4

Browse files
authored
Output formatting fix
Moved .UseSerilog() before .ConfigureWebHostDefaults to enable correct formatting in console output.
1 parent 58e8431 commit 84d8aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ public class Program
5151
```csharp
5252
public static IHostBuilder CreateHostBuilder(string[] args) =>
5353
Host.CreateDefaultBuilder(args)
54+
.UseSerilog() // <-- Add this line
5455
.ConfigureWebHostDefaults(webBuilder =>
5556
{
5657
webBuilder.UseStartup<Startup>();
57-
})
58-
.UseSerilog(); // <-- Add this line;
58+
});
5959
}
6060
```
6161

0 commit comments

Comments
 (0)