Logs-folder
This commit is contained in:
parent
775b8e3a6a
commit
81e0080a62
@ -7,7 +7,7 @@
|
||||
<Authors>Glax</Authors>
|
||||
<RepositoryUrl>https://git.bernloehr.eu/glax/GlaxLogger</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<Version>1.0.4</Version>
|
||||
<Version>1.0.5</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user