/// <summary> /// Invokes <see cref="OnEventLogged"/> on all associated event delegates. /// </summary> /// <param name="args">The event arguments.</param> internal void InvokeEventLogged(OnEventLoggedArgs args) { if (OnEventLogged != null) { OnEventLogged(Client, args); } }
/// <summary> /// Registers an ERROR message to be propagated through all hooked event delegates. /// </summary> /// <param name="message">The message to be logged.</param> public void Error(string message) { OnEventLoggedArgs args = new OnEventLoggedArgs(message) { Severity = EventSeverityEnum.Error }; InvokeEventLogged(args); }
/// <summary> /// Registers a WARNING message to be propagated through all hooked event delegates. /// </summary> /// <param name="message">The message to be logged.</param> public void Warn(string message) { OnEventLoggedArgs args = new OnEventLoggedArgs(message) { Severity = EventSeverityEnum.Warning }; InvokeEventLogged(args); }
/// <summary> /// Registers an INFO message to be propagated through all hooked event delegates. /// </summary> /// <param name="message">The message to be logged.</param> public void Info(string message) { OnEventLoggedArgs args = new OnEventLoggedArgs(message) { Severity = EventSeverityEnum.Info }; InvokeEventLogged(args); }
/// <summary> /// Registers a FATAL ERROR message to be propagated through all hooked event delegates. /// </summary> /// <param name="message">The message to be logged.</param> public void Fatal(string message) { OnEventLoggedArgs args = new OnEventLoggedArgs(message) { Severity = EventSeverityEnum.Fatal }; InvokeEventLogged(args); }
/// <summary> /// Registers a DEBUG message to be propagated through all hooked event delegates. /// </summary> /// <param name="message">The message to be logged.</param> public void Debug(string message) { OnEventLoggedArgs args = new OnEventLoggedArgs(message) { Severity = EventSeverityEnum.Debug }; InvokeEventLogged(args); }
/// <summary> /// Invokes <see cref="OnEventLogged"/> on all associated event delegates. /// </summary> /// <param name="args">The event arguments.</param> internal void InvokeEventLogged(OnEventLoggedArgs args) { if (OnEventLogged != null) OnEventLogged(Client, args); }