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)