mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
25 lines
536 B
C#
25 lines
536 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace WelsonJS.Service.Logging
|
|
{
|
|
public class FileLoggerProvider : ILoggerProvider
|
|
{
|
|
private string loggingDirectory;
|
|
|
|
public FileLoggerProvider(string _loggingDirectory)
|
|
{
|
|
loggingDirectory = _loggingDirectory;
|
|
}
|
|
|
|
public ILogger CreateLogger(string categoryName)
|
|
{
|
|
return new FileLogger(loggingDirectory, categoryName);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
// Dispose
|
|
}
|
|
}
|
|
}
|