C# 클래스 NLog.LayoutRenderers.LayoutRenderer

Render environmental information related to logging events.
상속: INLogConfigurationItem, ISupportsInitialize, IRenderable
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Render ( LogEventInfo logEvent ) : string

Renders the the value of layout renderer in the context of the specified log event.

ToString ( ) : string

Returns a System.String that represents this instance.

보호된 메소드들

메소드 설명
Append ( StringBuilder builder, LogEventInfo logEvent ) : void

Renders the specified environmental information and appends it to the specified StringBuilder.

CloseLayoutRenderer ( ) : void

Closes the layout renderer.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

InitializeLayoutRenderer ( ) : void

Initializes the layout renderer.

비공개 메소드들

메소드 설명
Close ( ) : void

Closes this instance.

ISupportsInitialize ( ) : void

Closes this instance.

ISupportsInitialize ( LoggingConfiguration configuration ) : void

Initializes this instance.

Initialize ( LoggingConfiguration configuration ) : void

Initializes this instance.

Render ( StringBuilder builder, LogEventInfo logEvent ) : void

메소드 상세

Append() 보호된 추상적인 메소드

Renders the specified environmental information and appends it to the specified StringBuilder.
protected abstract Append ( StringBuilder builder, LogEventInfo logEvent ) : void
builder StringBuilder The to append the rendered data to.
logEvent LogEventInfo Logging event.
리턴 void

CloseLayoutRenderer() 보호된 메소드

Closes the layout renderer.
protected CloseLayoutRenderer ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

InitializeLayoutRenderer() 보호된 메소드

Initializes the layout renderer.
protected InitializeLayoutRenderer ( ) : void
리턴 void

Render() 공개 메소드

Renders the the value of layout renderer in the context of the specified log event.
public Render ( LogEventInfo logEvent ) : string
logEvent LogEventInfo The log event.
리턴 string

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string