Click or drag to resize

ExceptionLayoutRenderer Class

Exception information provided through a call to one of the Logger.*Exception() methods.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersExceptionLayoutRenderer

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

The ExceptionLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodExceptionLayoutRenderer
Initializes a new instance of the ExceptionLayoutRenderer class.
Top
Properties
  NameDescription
Public propertyBaseException
Gets or sets whether to render innermost Exception from GetBaseException
Public propertyExceptionDataSeparator
Gets or sets the separator used to concatenate exception data specified in the Format.
Public propertyFlattenException
Gets or sets whether to collapse exception tree using Flatten
Public propertyFormat
Gets or sets the format of the output. Must be a comma-separated list of exception properties: Message, Type, ShortType, ToString, Method, StackTrace. This parameter value is case-insensitive.
Public propertyFormats
Gets the formats of the output of inner exceptions to be rendered in target. ExceptionRenderingFormat
Public propertyInnerExceptionSeparator
Gets or sets the separator between inner exceptions.
Public propertyInnerFormat
Gets or sets the format of the output of inner exceptions. Must be a comma-separated list of exception properties: Message, Type, ShortType, ToString, Method, StackTrace. This parameter value is case-insensitive.
Public propertyInnerFormats
Gets the formats of the output to be rendered in target. ExceptionRenderingFormat
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyMaxInnerExceptionLevel
Gets or sets the maximum number of inner exceptions to include in the output. By default inner exceptions are not enabled for compatibility with NLog 1.0.
Public propertySeparator
Gets or sets the separator used to concatenate parts specified in the Format.
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 methodAppendData
Appends the contents of an Exception's Data property to the specified StringBuilder.
Protected methodAppendHResult
Appends the HResult of an Exception to the specified StringBuilder.
Protected methodAppendMessage
Appends the Message of an Exception to the specified StringBuilder.
Protected methodAppendMethod
Appends the method name from Exception's stack trace to the specified StringBuilder.
Protected methodAppendProperties
Appends all the additional properties of an Exception like Data key-value-pairs
Protected methodAppendSerializeObject
Appends all the serialized properties of an Exception into the specified StringBuilder.
Protected methodAppendShortType
Appends the short type of an Exception to the specified StringBuilder.
Protected methodAppendSource
Appends the application source of an Exception to the specified StringBuilder.
Protected methodAppendStackTrace
Appends the stack trace from an Exception to the specified StringBuilder.
Protected methodAppendToString
Appends the result of calling ToString() on an Exception to the specified StringBuilder.
Protected methodAppendType
Appends the type of an Exception to the specified StringBuilder.
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