mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
31 lines
742 B
C#
31 lines
742 B
C#
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; }
|
|
}
|
|
}
|