1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-01 18:37:35 +01:00
bitwarden-server/util/Migrator/DbUpLogger.cs
2019-03-25 13:23:50 -04:00

31 lines
697 B
C#

using DbUp.Engine.Output;
using Microsoft.Extensions.Logging;
namespace Bit.Migrator
{
public class DbUpLogger : IUpgradeLog
{
private readonly ILogger _logger;
public DbUpLogger(ILogger logger)
{
_logger = logger;
}
public void WriteError(string format, params object[] args)
{
_logger.LogError(format, args);
}
public void WriteInformation(string format, params object[] args)
{
_logger.LogInformation(format, args);
}
public void WriteWarning(string format, params object[] args)
{
_logger.LogWarning(format, args);
}
}
}