Click or drag to resize

PerformanceCounterLayoutRenderer Class

The performance counter.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersPerformanceCounterLayoutRenderer

Namespace:  NLog.LayoutRenderers
Assembly:  NLog.PerformanceCounter (in NLog.PerformanceCounter.dll) Version: 5.2.0+68ed826d5d3b17619b9ab78bfa53db526cadd9d2
Syntax
public class PerformanceCounterLayoutRenderer : LayoutRenderer

The PerformanceCounterLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodPerformanceCounterLayoutRenderer
Initializes a new instance of the PerformanceCounterLayoutRenderer class
Top
Properties
  NameDescription
Public propertyCategory
Gets or sets the name of the counter category.
Public propertyCounter
Gets or sets the name of the performance counter.
Public propertyCulture
Gets or sets the culture used for rendering.
Public propertyFormat
Format string for conversion from float to string.
Public propertyInstance
Gets or sets the name of the performance counter instance (e.g. this.Global_).
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyMachineName
Gets or sets the name of the machine to read the performance counter from.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Top
Methods
  NameDescription
Protected methodAppend
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Overrides LayoutRendererCloseLayoutRenderer.)
Protected methodGetCulture
Get the CultureInfo for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodGetFormatProvider
Get the IFormatProvider for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodInitializeLayoutRenderer
Initializes the layout renderer.
(Overrides LayoutRendererInitializeLayoutRenderer.)
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Protected methodResolveServiceT
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
See Also