mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
33 lines
795 B
C#
33 lines
795 B
C#
using System;
|
|
|
|
namespace MQTTnet.Core.Diagnostics
|
|
{
|
|
public sealed class MqttNetLogMessage
|
|
{
|
|
public MqttNetLogMessage(string logId, DateTime timestamp, int threadId, string source, MqttNetLogLevel level, string message, Exception exception)
|
|
{
|
|
LogId = logId;
|
|
Timestamp = timestamp;
|
|
ThreadId = threadId;
|
|
Source = source;
|
|
Level = level;
|
|
Message = message;
|
|
Exception = exception;
|
|
}
|
|
|
|
public string LogId { get; }
|
|
|
|
public DateTime Timestamp { get; }
|
|
|
|
public int ThreadId { get; }
|
|
|
|
public string Source { get; }
|
|
|
|
public MqttNetLogLevel Level { get; }
|
|
|
|
public string Message { get; }
|
|
|
|
public Exception Exception { get; }
|
|
}
|
|
}
|