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.
|
- using System;
-
- namespace MQTTnet.Core.Diagnostics
- {
- public static class MqttNetGlobalLog
- {
- public static event EventHandler<MqttNetLogMessagePublishedEventArgs> LogMessagePublished;
-
- public static bool HasListeners => LogMessagePublished != null;
-
- public static void Publish(MqttNetLogMessage logMessage)
- {
- if (logMessage == null) throw new ArgumentNullException(nameof(logMessage));
-
- LogMessagePublished?.Invoke(null, new MqttNetLogMessagePublishedEventArgs(logMessage));
- }
- }
- }
|