Removes dependency on Microsoft.Extensions.Logging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user