/// <summary> /// Log a message to the custom logger /// </summary> /// <param name="category">The log message category</param> /// <param name="message">The log message</param> protected override void LogMessage(W.Logging.Log.LogMessageCategory category, string message) { if (_client?.Socket?.IsConnected ?? false) //because the handler is added before the client connects { message = FormatLogMessage(category, message); _client.Send(message); } }
/// <summary> /// Log a message to the custom logger /// </summary> /// <param name="category">The log message category</param> /// <param name="message">The log message</param> protected virtual void LogMessage(W.Logging.Log.LogMessageCategory category, string message) { }