From 87607165c35a0bddf981dcbd0e30031535b142c5 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 1 Feb 2024 22:32:57 +0100 Subject: [PATCH] Fix wrong filenames --- GlaxLogger/GlaxLogger.csproj | 2 +- GlaxLogger/Logger.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GlaxLogger/GlaxLogger.csproj b/GlaxLogger/GlaxLogger.csproj index 01f0924..57ce128 100644 --- a/GlaxLogger/GlaxLogger.csproj +++ b/GlaxLogger/GlaxLogger.csproj @@ -7,7 +7,7 @@ Glax https://git.bernloehr.eu/glax/GlaxLogger git - 1.0.1 + 1.0.2 diff --git a/GlaxLogger/Logger.cs b/GlaxLogger/Logger.cs index 7ffc9c7..fcb9ba2 100644 --- a/GlaxLogger/Logger.cs +++ b/GlaxLogger/Logger.cs @@ -15,8 +15,8 @@ public class Logger : ILogger { this._filterLevel = filteredLevel; string logFolderPath = outputFolderPath ?? Environment.CurrentDirectory; - this._filteredLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:hh:mm:ss}-filtered.log"), FileMode.Create, FileAccess.Write, FileShare.Read); - this._allMessageLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:hh:mm:ss}.log"), FileMode.Create, FileAccess.Write, FileShare.Read); + this._filteredLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:yyyy-MM-dd hh.mm.ss}-filtered.log"), FileMode.Create, FileAccess.Write, FileShare.Read); + this._allMessageLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:yyyy-MM-dd hh.mm.ss}.log"), FileMode.Create, FileAccess.Write, FileShare.Read); } public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter)