Skip to content

Commit 7c3645a

Browse files
committed
Fix breaking changes
1 parent f42d5b9 commit 7c3645a

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

src/EdFi.Db.Deploy/DbUpLogger.cs

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
44
// See the LICENSE and NOTICES files in the project root for more information.
55

6+
using System;
67
using DbUp.Engine.Output;
78
using EdFi.Db.Deploy.Helpers;
89
using log4net;
@@ -18,28 +19,50 @@ public DbUpLogger(ILog logger)
1819
_logger = Preconditions.ThrowIfNull(logger, nameof(logger));
1920
}
2021

21-
public void WriteInformation(string format, params object[] args)
22+
public void LogInformation(string format, params object[] args)
2223
{
2324
Preconditions.ThrowIfNull(format, nameof(format));
2425
Preconditions.ThrowIfNull(args, nameof(args));
2526

2627
_logger.Info(string.Format(format, args));
2728
}
2829

29-
public void WriteError(string format, params object[] args)
30+
public void LogError(string format, params object[] args)
3031
{
3132
Preconditions.ThrowIfNull(format, nameof(format));
3233
Preconditions.ThrowIfNull(args, nameof(args));
3334

3435
_logger.Error(string.Format(format, args));
3536
}
3637

37-
public void WriteWarning(string format, params object[] args)
38+
public void LogWarning(string format, params object[] args)
3839
{
3940
Preconditions.ThrowIfNull(format, nameof(format));
4041
Preconditions.ThrowIfNull(args, nameof(args));
4142

4243
_logger.Warn(string.Format(format, args));
4344
}
45+
46+
public void LogTrace(string format, params object[] args)
47+
{
48+
LogInformation(format, args);
49+
}
50+
51+
public void LogDebug(string format, params object[] args)
52+
{
53+
Preconditions.ThrowIfNull(format, nameof(format));
54+
Preconditions.ThrowIfNull(args, nameof(args));
55+
56+
_logger.Debug(string.Format(format, args));
57+
}
58+
59+
public void LogError(Exception exception, string format, params object[] args)
60+
{
61+
Preconditions.ThrowIfNull(exception, nameof(exception));
62+
Preconditions.ThrowIfNull(format, nameof(format));
63+
Preconditions.ThrowIfNull(args, nameof(args));
64+
65+
_logger.Error(string.Format(format, args), exception);
66+
}
4467
}
4568
}

0 commit comments

Comments
 (0)