From b9ad8e5efe377983ac12581c58dd7992b6ba98a4 Mon Sep 17 00:00:00 2001 From: Lunar Starstrum Date: Sat, 12 Oct 2024 16:11:44 -0500 Subject: [PATCH] Fix logging filename regression that went completely unnoticed from 7 months ago. --- src/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Program.cs b/src/Program.cs index da3d438..7c7858a 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -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 );