forked from amkovkov/GranuSightSoftware2
feat: add logs formatting
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
Reference in New Issue
Block a user