PerformanceCounterLayoutRenderer Class |
Namespace: NLog.LayoutRenderers
The PerformanceCounterLayoutRenderer type exposes the following members.
Name | Description | |
---|---|---|
PerformanceCounterLayoutRenderer | Initializes a new instance of the PerformanceCounterLayoutRenderer class |
Name | Description | |
---|---|---|
Category |
Gets or sets the name of the counter category.
| |
Counter |
Gets or sets the name of the performance counter.
| |
Culture |
Gets or sets the culture used for rendering.
| |
Format |
Format string for conversion from float to string.
| |
Instance |
Gets or sets the name of the performance counter instance (e.g. this.Global_).
| |
LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.) | |
MachineName |
Gets or sets the name of the machine to read the performance counter from.
| |
ValueFormatter |
Value formatter
(Inherited from LayoutRenderer.) |
Name | Description | |
---|---|---|
Append |
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).) | |
CloseLayoutRenderer |
Closes the layout renderer.
(Overrides LayoutRendererCloseLayoutRenderer.) | |
GetCulture |
Get the CultureInfo for rendering the messages to a String (Inherited from LayoutRenderer.) | |
GetFormatProvider |
Get the IFormatProvider for rendering the messages to a String (Inherited from LayoutRenderer.) | |
InitializeLayoutRenderer |
Initializes the layout renderer.
(Overrides LayoutRendererInitializeLayoutRenderer.) | |
Render |
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.) | |
ResolveServiceT |
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.) | |
ToString | Returns a string that represents the current object. (Inherited from LayoutRenderer.) |