Click or drag to resize

RegistryLayoutRenderer Class

A value from the Registry.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersRegistryLayoutRenderer

Namespace:  NLog.LayoutRenderers
Assembly:  NLog.WindowsRegistry (in NLog.WindowsRegistry.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class RegistryLayoutRenderer : LayoutRenderer

The RegistryLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodRegistryLayoutRenderer
Initializes a new instance of the RegistryLayoutRenderer class
Top
Properties
  NameDescription
Public propertyDefaultValue
Gets or sets the value to be output when the specified registry key or value is not found.
Public propertyCode exampleKey
Gets or sets the registry key.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyRequireEscapingSlashesInDefaultValue
Require escaping backward slashes in DefaultValue. Need to be backwards-compatible. When true: `\` in value should be configured as `\\` `\\` in value should be configured as `\\\\`.
Public propertyValue
Gets or sets the registry value name.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Public propertyView
Gets or sets the registry view (see: https://msdn.microsoft.com/de-de/library/microsoft.win32.registryview.aspx). Allowed values: Registry32, Registry64, Default
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.
(Inherited from LayoutRenderer.)
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.
(Inherited from LayoutRenderer.)
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