using Microsoft.Extensions.Logging; using MTWorkHR.Application.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MTWorkHR.Infrastructure.Logging { public class LoggerAdapter : IAppLogger { private readonly ILogger _logger; public LoggerAdapter(ILoggerFactory loggerFactory) { _logger = loggerFactory.CreateLogger(); } public void LogInformation(string message, params object[] args) { _logger.LogInformation(message, args); } public void LogWarning(string message, params object[] args) { _logger.LogWarning(message, args); } } }