コード例 #1
0
ファイル: Logger.cs プロジェクト: scottshea/monodicom
        /// <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);
        }
コード例 #2
0
ファイル: Logger.cs プロジェクト: bzmework/log4net
 /// <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);
 }
コード例 #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);
		}