Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
fix: remove type from log prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats committed Sep 16, 2022
1 parent a248bcd commit 0cc4e10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public static IHostBuilder UseSerilogForAppLogs(this ConfigureHostBuilder hostBu
.MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.WriteTo
.Console(outputTemplate: "[{Timestamp:T} {Level:u3}] ({SourceContext}) {Message}{NewLine}{Exception}")
.Console(outputTemplate: "[{Timestamp:T} {Level:u3}] {Message}{NewLine}{Exception}")
.WriteTo
.File(Path.Join(BaseDirectoryName, "AppLogs_.log"),
outputTemplate: "{Timestamp:o} [{Level:u3}] ({SourceContext}) {Message}{NewLine}{Exception}",
outputTemplate: "{Timestamp:o} [{Level:u3}] {Message}{NewLine}{Exception}",
rollingInterval: RollingInterval.Day,
retainedFileCountLimit: 30
)
Expand Down

0 comments on commit 0cc4e10

Please sign in to comment.