fix issue #I3QBZI

This commit is contained in:
yubaolee
2021-05-09 00:02:28 +08:00
parent 88e2015a11
commit cd211c05d3
2 changed files with 4 additions and 28 deletions

View File

@@ -1,24 +0,0 @@

using Microsoft.Extensions.Logging;
namespace Infrastructure
{
/// <summary>
/// 从3.0开始Startup ConfigureServices中不能使用ILogger需要扩展
/// </summary>
public class StartupLogger
{
private readonly ILogger<StartupLogger> _logger;
public StartupLogger(ILogger<StartupLogger> logger)
{
_logger = logger;
}
public void LogInformation(string message)
{
_logger.LogInformation(message);
}
}
}