Removes dependency on Microsoft.Extensions.Logging

This commit is contained in:
Ryan Newington
2023-07-22 14:44:23 +10:00
parent dc76336ce3
commit ed679eba6b
20 changed files with 77 additions and 23 deletions
@@ -0,0 +1,28 @@
using System;
using System.Diagnostics;
namespace Lithnet.CredentialProvider
{
public class TraceLogger : ILogger
{
public void LogError(Exception ex, string v)
{
Trace.TraceError(v + "\r\n\r\n" + ex?.ToString());
}
public void LogError(string v)
{
Trace.TraceError(v);
}
public void LogTrace(string v)
{
Trace.TraceInformation(v);
}
public void LogWarning(string message)
{
Trace.TraceWarning(message);
}
}
}