diff --git a/GlaxLogger/GlaxLogger.csproj b/GlaxLogger/GlaxLogger.csproj index 1d43d68..b8dfc0e 100644 --- a/GlaxLogger/GlaxLogger.csproj +++ b/GlaxLogger/GlaxLogger.csproj @@ -7,7 +7,7 @@ Glax https://git.bernloehr.eu/glax/GlaxLogger git - 1.0.4 + 1.0.5 diff --git a/GlaxLogger/Logger.cs b/GlaxLogger/Logger.cs index 8c6826f..3290387 100644 --- a/GlaxLogger/Logger.cs +++ b/GlaxLogger/Logger.cs @@ -14,7 +14,7 @@ public class Logger : ILogger, IDisposable, IAsyncDisposable public Logger(LogLevel filteredLevel = LogLevel.Warning, string? outputFolderPath = null, TextWriter? consoleOut = null) { this._filterLevel = filteredLevel; - string logFolderPath = outputFolderPath ?? Environment.CurrentDirectory; + string logFolderPath = outputFolderPath ?? Path.Join(Environment.CurrentDirectory, "logs"); this._filteredLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:yyyy-MM-dd HH.mm.ss}-filtered.log"), FileMode.Create); this._allMessageLogfile = new FileStream(Path.Join(logFolderPath, $"{DateTime.Now:yyyy-MM-dd HH.mm.ss}.log"), FileMode.Create); this._consoleOut = consoleOut ?? Console.Out;