feat: add logs formatting

This commit is contained in:
2025-12-19 09:35:23 +03:00
parent 18a50b745d
commit 717efe6781
6 changed files with 279 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
using Microsoft.Extensions.Logging;
namespace GSS2.Test;
public sealed class FileLoggerProvider : ILoggerProvider
{
private readonly string _filePath;
public FileLoggerProvider(string filePath) => _filePath = filePath;
public ILogger CreateLogger(string categoryName) => new FileLogger(categoryName, _filePath);
public void Dispose() { }
}