added back MqttTrace consuming api

This commit is contained in:
Jan Eggers
2017-10-23 12:42:31 +02:00
parent d10f29bbc6
commit 7e6f4453ad
8 changed files with 192 additions and 2 deletions
@@ -0,0 +1,30 @@
using System;
using Microsoft.Extensions.Logging;
namespace MQTTnet.Core.Diagnostics
{
public sealed class MqttNetTraceMessage
{
public MqttNetTraceMessage(DateTime timestamp, int threadId, string source, LogLevel level, string message, Exception exception)
{
Timestamp = timestamp;
ThreadId = threadId;
Source = source;
Level = level;
Message = message;
Exception = exception;
}
public DateTime Timestamp { get; }
public int ThreadId { get; }
public string Source { get; }
public LogLevel Level { get; }
public string Message { get; }
public Exception Exception { get; }
}
}