Skip to content

Commit

Permalink
Fix logging filename regression that went completely unnoticed from 7…
Browse files Browse the repository at this point in the history
… months ago.
  • Loading branch information
OoLunar committed Oct 12, 2024
1 parent 3c857ca commit b9ad8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static async Task Main(string[] args)

serilogLoggerConfiguration.WriteTo.File(
formatProvider: CultureInfo.InvariantCulture,
path: $"{tomoeConfiguration.Logger.Path}/{tomoeConfiguration.Logger.FileName}.log",
path: $"{tomoeConfiguration.Logger.Path}/{DateTime.Now.ToUniversalTime().ToString(tomoeConfiguration.Logger.FileName, CultureInfo.InvariantCulture)}-.log",
rollingInterval: tomoeConfiguration.Logger.RollingInterval,
outputTemplate: tomoeConfiguration.Logger.Format
);
Expand Down

0 comments on commit b9ad8e5

Please sign in to comment.