/// <summary> /// Logs a formatted message string with the <see cref="Level.Fatal"/> level. /// </summary> /// <param name="logEvent">The event being logged.</param> public void Fatal(LoggingData logEvent) { if (IsFatalEnabled) { logEvent.Level = m_levelFatal; Logger.Log(logEvent); } }
/// <summary> /// Logs a formatted message string with the <see cref="Level.Error"/> level. /// </summary> /// <param name="logEvent">The event being logged.</param> public void Error(LoggingData logEvent) { if (IsErrorEnabled) { logEvent.Level = m_levelError; Logger.Log(logEvent); } }
/// <summary> /// Logs a formatted message string with the <see cref="Level.Warn"/> level. /// </summary> /// <param name="logEvent">The event being logged.</param> public void Warn(LoggingData logEvent) { if (IsWarnEnabled) { logEvent.Level = m_levelWarn; Logger.Log(logEvent); } }
/// <summary> /// Logs a formatted message string with the <see cref="Level.Info"/> level. /// </summary> /// <param name="logEvent">The event being logged.</param> /// <seealso cref="M:Debug(object)"/> /// <seealso cref="IsDebugEnabled"/> public void Info(LoggingData logEvent) { if (IsInfoEnabled) { logEvent.Level = m_levelInfo; Logger.Log(logEvent); } }
/// <summary> /// Logs a formatted message string with the <see cref="Level.Debug"/> level. /// </summary> /// <param name="logEvent">The event being logged.</param> /// <seealso cref="M:Debug(object)"/> /// <seealso cref="IsDebugEnabled"/> public void Debug(LoggingData logEvent) { if (IsDebugEnabled) { logEvent.Level = m_levelDebug; Logger.Log(logEvent); } }
/// <summary> /// Test if an <see cref="LoggingData"/> triggers an action /// </summary> /// <remarks> /// <para> /// Implementations of this interface allow certain appenders to decide /// when to perform an appender specific action. /// </para> /// <para> /// The action or behavior triggered is defined by the implementation. /// </para> /// </remarks> /// <author>liuww</author> public bool IsTriggeringEvent(LoggingData loggingEvent, object para) { var cb = para as CyclicBuffer; if (cb == null) { return(false); } return(cb.Length == m_MaxBufferSize); }