mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
27 lines
574 B
C#
27 lines
574 B
C#
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
|
|
namespace MQTTnet.Core.Tests
|
|
{
|
|
public class TestLogger<T> : IDisposable, ILogger<T>
|
|
{
|
|
public IDisposable BeginScope<TState>(TState state)
|
|
{
|
|
return this;
|
|
}
|
|
|
|
public bool IsEnabled(LogLevel logLevel)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
|
|
{
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|