C# 클래스 AWSAppender.Core.Appenders.RenderingForwardingAppender

This appender forwards logging events to attached appenders.

The forwarding appender can be used to specify different thresholds and filters for the same appender at different locations within the hierarchy.

상속: log4net.Appender.AppenderSkeleton, IAppenderAttachable
파일 보기 프로젝트 열기: camitz/CloudWatchAppender

공개 메소드들

메소드 설명
AddAppender ( IAppender newAppender ) : void

Adds an IAppender to the list of appenders of this instance.

If the specified IAppender is already in the list of appenders, then it won't be added again.

GetAppender ( string name ) : IAppender

Looks for the appender with the specified name.

Get the named appender attached to this appender.

RemoveAllAppenders ( ) : void

Removes all previously added appenders from this appender.

This is useful when re-reading configuration information.

RemoveAppender ( IAppender appender ) : IAppender

Removes the specified appender from the list of appenders.

The appender removed is not closed. If you are discarding the appender you must call IAppender.Close on the appender removed.

RemoveAppender ( string name ) : IAppender

Removes the appender with the specified name from the list of appenders.

The appender removed is not closed. If you are discarding the appender you must call IAppender.Close on the appender removed.

RenderingForwardingAppender ( ) : System

Initializes a new instance of the ForwardingAppender class.

Default constructor.

보호된 메소드들

메소드 설명
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Forward the logging event to the attached appenders

Delivers the logging event to all the attached appenders.

OnClose ( ) : void

Closes the appender and releases resources.

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

메소드 상세

AddAppender() 공개 메소드

Adds an IAppender to the list of appenders of this instance.

If the specified IAppender is already in the list of appenders, then it won't be added again.

public AddAppender ( IAppender newAppender ) : void
newAppender IAppender The to add to this appender.
리턴 void

Append() 보호된 메소드

Forward the logging event to the attached appenders

Delivers the logging event to all the attached appenders.

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent The event to log.
리턴 void

GetAppender() 공개 메소드

Looks for the appender with the specified name.

Get the named appender attached to this appender.

public GetAppender ( string name ) : IAppender
name string The name of the appender to lookup.
리턴 IAppender

OnClose() 보호된 메소드

Closes the appender and releases resources.

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

protected OnClose ( ) : void
리턴 void

RemoveAllAppenders() 공개 메소드

Removes all previously added appenders from this appender.

This is useful when re-reading configuration information.

public RemoveAllAppenders ( ) : void
리턴 void

RemoveAppender() 공개 메소드

Removes the specified appender from the list of appenders.
The appender removed is not closed. If you are discarding the appender you must call IAppender.Close on the appender removed.
public RemoveAppender ( IAppender appender ) : IAppender
appender IAppender The appender to remove.
리턴 IAppender

RemoveAppender() 공개 메소드

Removes the appender with the specified name from the list of appenders.
The appender removed is not closed. If you are discarding the appender you must call IAppender.Close on the appender removed.
public RemoveAppender ( string name ) : IAppender
name string The name of the appender to remove.
리턴 IAppender

RenderingForwardingAppender() 공개 메소드

Initializes a new instance of the ForwardingAppender class.

Default constructor.

public RenderingForwardingAppender ( ) : System
리턴 System