C# Class NLog.LayoutRenderers.LayoutRenderer

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat void

CloseLayoutRenderer() protected méthode

Closes the layout renderer.
protected CloseLayoutRenderer ( ) : void
Résultat void

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

InitializeLayoutRenderer() protected méthode

Initializes the layout renderer.
protected InitializeLayoutRenderer ( ) : void
Résultat void

Render() public méthode

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.
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string