Click or drag to resize

WindowsIdentityLayoutRenderer Class

Thread Windows identity information (username).
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersWindowsIdentityLayoutRenderer

Namespace:  NLog.LayoutRenderers
Assembly:  NLog.WindowsIdentity (in NLog.WindowsIdentity.dll) Version: 5.3.0+26b1fda2a4988e638aa77c5dd68f6ffd321a20c9
Syntax
public class WindowsIdentityLayoutRenderer : LayoutRenderer

The WindowsIdentityLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodWindowsIdentityLayoutRenderer
Initializes a new instance of the WindowsIdentityLayoutRenderer class
Top
Properties
  NameDescription
Public propertyDomain
Gets or sets a value indicating whether domain name should be included.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyUserName
Gets or sets a value indicating whether username should be included.
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.
(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