mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-18 18:14:20 +01:00
23 lines
535 B
C#
23 lines
535 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace DotBased.Logging.MEL;
|
|
|
|
public class BasedLoggerProvider : ILoggerProvider
|
|
{
|
|
public BasedLoggerProvider(LogOptions options)
|
|
{
|
|
Options = options;
|
|
}
|
|
|
|
private readonly LogOptions Options;
|
|
|
|
public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName)
|
|
{
|
|
return new BasedLogger(Options.LoggerBuilder.Invoke(new LoggerInformation(typeof(BasedLoggerProvider)), categoryName));
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
} |