Beispiel #1
0
        /// <summary>
        /// Creates a new logging event and logs the event without further checks.
        /// </summary>
        /// <param name="logEvent">The event being logged.</param>
        /// <remarks>
        /// <para>
        /// Delivers the logging event to the attached appenders.
        /// </para>
        /// </remarks>
        virtual protected void ForcedLog(LoggingEvent logEvent)
        {
            // The logging event may not have been created by this logger
            // the Repository may not be correctly set on the event. This
            // is required for the appenders to correctly lookup renderers etc...
            logEvent.EnsureRepository(this.Hierarchy);

            CallAppenders(logEvent);
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new logging event and logs the event without further checks.
 /// </summary>
 /// <param name="logEvent">The event being logged.</param>
 /// <remarks>
 /// <para>
 /// Delivers the logging event to the attached appenders.
 /// </para>
 /// </remarks>
 protected virtual void ForcedLog(LoggingEvent logEvent)
 {
     logEvent.EnsureRepository(Hierarchy);
     CallAppenders(logEvent);
 }
Beispiel #3
0
		/// <summary>
		/// Creates a new logging event and logs the event without further checks.
		/// </summary>
		/// <param name="logEvent">The event being logged.</param>
		/// <remarks>
		/// <para>
		/// Delivers the logging event to the attached appenders.
		/// </para>
		/// </remarks>
		virtual protected void ForcedLog(LoggingEvent logEvent) 
		{
			// The logging event may not have been created by this logger
			// the Repository may not be correctly set on the event. This
			// is required for the appenders to correctly lookup renderers etc...
			logEvent.EnsureRepository(this.Hierarchy);

			CallAppenders(logEvent);
		}