Unit tests working; added logger adapter.

This commit is contained in:
Steve Smith
2017-04-30 08:06:06 -04:00
parent 6f908bb8e5
commit dfe0106ce3
6 changed files with 31 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
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);
}
}
}