Click or drag to resize

CallSiteLayoutRenderer Class

The call site (class name, method name and source information).
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersCallSiteLayoutRenderer

Namespace:  NLog.LayoutRenderers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class CallSiteLayoutRenderer : LayoutRenderer, 
	IUsesStackTrace

The CallSiteLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodCallSiteLayoutRenderer
Initializes a new instance of the CallSiteLayoutRenderer class
Top
Properties
  NameDescription
Public propertyCaptureStackTrace
Logger should capture StackTrace, if it was not provided manually
Public propertyClassName
Gets or sets a value indicating whether to render the class name.
Public propertyCleanNamesOfAnonymousDelegates
Gets or sets a value indicating whether the method name will be cleaned up if it is detected as an anonymous delegate.
Public propertyCleanNamesOfAsyncContinuations
Gets or sets a value indicating whether the method and class names will be cleaned up if it is detected as an async continuation (everything after an await-statement inside of an async method).
Public propertyFileName
Gets or sets a value indicating whether to render the source file name and line number.
Public propertyIncludeNamespace
Gets or sets a value indicating whether to render the include the namespace with ClassName.
Public propertyIncludeSourcePath
Gets or sets a value indicating whether to include source file path.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyMethodName
Gets or sets a value indicating whether to render the method name.
Public propertySkipFrames
Gets or sets the number of frames to skip.
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
Remarks
See Also