feat: GSS2.Test - UI+DI, Vulkan render test

This commit is contained in:
2026-01-22 08:04:04 +03:00
parent 2ce8d3e966
commit 5af1c508f5
23 changed files with 1093 additions and 131 deletions
+6 -1
View File
@@ -6,7 +6,12 @@ public sealed class FileLoggerProvider : ILoggerProvider
{
private readonly string _filePath;
public FileLoggerProvider(string filePath) => _filePath = filePath;
public FileLoggerProvider(string filePath, bool append = true)
{
_filePath = filePath;
if (!append && File.Exists(filePath))
File.Create(filePath);
}
public ILogger CreateLogger(string categoryName) => new FileLogger(categoryName, _filePath);