예제 #1
0
 /// <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);
     }
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
        /// <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);
        }
예제 #5
0
        /// <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);
        }
예제 #6
0
 /// <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);
 }
예제 #7
0
 /// <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);
 }
예제 #8
0
 /// <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);
 }
예제 #9
0
 /// <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);
 }
예제 #10
0
 /// <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);
 }