C# Класс NLog.LayoutRenderers.LayoutRenderer

Render environmental information related to logging events.
Наследование: INLogConfigurationItem, ISupportsInitialize, IRenderable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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