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.
 
 
 
 

41 lines
1.1 KiB

  1. using System;
  2. using MQTTnet.Diagnostics;
  3. namespace MQTTnet.Tests.Mockups
  4. {
  5. public class TestLogger : IMqttNetLogger, IMqttNetChildLogger
  6. {
  7. public event EventHandler<MqttNetLogMessagePublishedEventArgs> LogMessagePublished;
  8. IMqttNetChildLogger IMqttNetLogger.CreateChildLogger(string source)
  9. {
  10. return new MqttNetChildLogger(this, source);
  11. }
  12. IMqttNetChildLogger IMqttNetChildLogger.CreateChildLogger(string source)
  13. {
  14. return new MqttNetChildLogger(this, source);
  15. }
  16. public void Verbose(string message, params object[] parameters)
  17. {
  18. }
  19. public void Info(string message, params object[] parameters)
  20. {
  21. }
  22. public void Warning(Exception exception, string message, params object[] parameters)
  23. {
  24. }
  25. public void Error(Exception exception, string message, params object[] parameters)
  26. {
  27. }
  28. public void Publish(MqttNetLogLevel logLevel, string source, string message, object[] parameters, Exception exception)
  29. {
  30. }
  31. }
  32. }