C# Class NLog.LayoutRenderers.LayoutRenderer

Render environmental information related to logging events.
Inheritance: INLogConfigurationItem, ISupportsInitialize, IRenderable
Show file Open project: shiftkey/winrt-backport-hilarity Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Append() protected abstract method

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.
return void

CloseLayoutRenderer() protected method

Closes the layout renderer.
protected CloseLayoutRenderer ( ) : void
return void

Dispose() public method

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

Dispose() protected method

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.
return void

InitializeLayoutRenderer() protected method

Initializes the layout renderer.
protected InitializeLayoutRenderer ( ) : void
return void

Render() public method

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.
return string

ToString() public method

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