forked from amkovkov/GranuSightSoftware2
15 lines
361 B
C#
15 lines
361 B
C#
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() { }
|
|
}
|