From 62a8c3e9add56386de31fd68897336de8ea773c2 Mon Sep 17 00:00:00 2001 From: Martin Rapavy Date: Tue, 6 Feb 2024 09:40:09 -0600 Subject: [PATCH] fixed logFilePath (removed extra dot) --- src/SerilogEcsLogging/Logging/LoggerConfigurationExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SerilogEcsLogging/Logging/LoggerConfigurationExtensions.cs b/src/SerilogEcsLogging/Logging/LoggerConfigurationExtensions.cs index 05e26ae..361aec3 100644 --- a/src/SerilogEcsLogging/Logging/LoggerConfigurationExtensions.cs +++ b/src/SerilogEcsLogging/Logging/LoggerConfigurationExtensions.cs @@ -53,7 +53,7 @@ public static LoggerConfiguration ConfigureEcs(this LoggerConfiguration configur var directory = Path.GetDirectoryName(logFilePath) ?? string.Empty; var filename = Path.GetFileNameWithoutExtension(logFilePath); var extension = Path.GetExtension(logFilePath); - logFilePath = Path.Combine(directory, $"{filename}.ECS.{extension}"); + logFilePath = Path.Combine(directory, $"{filename}.ECS{extension}"); configuration.WriteTo.Async(c => c.File(EcsTextFormatter, logFilePath, rollingInterval: RollingInterval.Day)); }