You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
634 B
24 lines
634 B
using ApplicationCore.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Infrastructure.Logging
|
|
{
|
|
public class LoggerAdapter<T> : IAppLogger<T>
|
|
{
|
|
private readonly ILogger<T> _logger;
|
|
public LoggerAdapter(ILoggerFactory loggerFactory)
|
|
{
|
|
_logger = loggerFactory.CreateLogger<T>();
|
|
}
|
|
|
|
public void LogWarning(string message, params object[] args)
|
|
{
|
|
_logger.LogWarning(message, args);
|
|
}
|
|
|
|
public void LogInformation(string message, params object[] args)
|
|
{
|
|
_logger.LogInformation(message, args);
|
|
}
|
|
}
|
|
}
|
|
|