You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 line
742 B

  1. using System;
  2. using Microsoft.Extensions.Logging;
  3. namespace MQTTnet.Core.Diagnostics
  4. {
  5. public sealed class MqttNetTraceMessage
  6. {
  7. public MqttNetTraceMessage(DateTime timestamp, int threadId, string source, LogLevel level, string message, Exception exception)
  8. {
  9. Timestamp = timestamp;
  10. ThreadId = threadId;
  11. Source = source;
  12. Level = level;
  13. Message = message;
  14. Exception = exception;
  15. }
  16. public DateTime Timestamp { get; }
  17. public int ThreadId { get; }
  18. public string Source { get; }
  19. public LogLevel Level { get; }
  20. public string Message { get; }
  21. public Exception Exception { get; }
  22. }
  23. }