ExceptionLayoutRenderer Class |
Namespace: NLog.LayoutRenderers
The ExceptionLayoutRenderer type exposes the following members.
| Name | Description | |
|---|---|---|
| ExceptionLayoutRenderer |
Initializes a new instance of the ExceptionLayoutRenderer class.
|
| Name | Description | |
|---|---|---|
| BaseException |
Gets or sets whether to render innermost Exception from GetBaseException | |
| ExceptionDataSeparator |
Gets or sets the separator used to concatenate exception data specified in the Format.
| |
| FlattenException |
Gets or sets whether to collapse exception tree using Flatten | |
| Format |
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.
| |
| Formats |
Gets the formats of the output of inner exceptions to be rendered in target. ExceptionRenderingFormat | |
| InnerExceptionSeparator |
Gets or sets the separator between inner exceptions.
| |
| InnerFormat |
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.
| |
| LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.) | |
| MaxInnerExceptionLevel |
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.
| |
| Separator |
Gets or sets the separator used to concatenate parts specified in the Format.
| |
| ValueFormatter |
Value formatter
(Inherited from LayoutRenderer.) |
| Name | Description | |
|---|---|---|
| Append |
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).) | |
| AppendData |
Appends the contents of an Exception's Data property to the specified StringBuilder.
| |
| AppendHResult |
Appends the HResult of an Exception to the specified StringBuilder.
| |
| AppendMessage |
Appends the Message of an Exception to the specified StringBuilder.
| |
| AppendMethod |
Appends the method name from Exception's stack trace to the specified StringBuilder.
| |
| AppendProperties |
Appends all the additional properties of an Exception like Data key-value-pairs
| |
| AppendSerializeObject |
Appends all the serialized properties of an Exception into the specified StringBuilder.
| |
| AppendShortType |
Appends the short type of an Exception to the specified StringBuilder.
| |
| AppendSource |
Appends the application source of an Exception to the specified StringBuilder.
| |
| AppendStackTrace |
Appends the stack trace from an Exception to the specified StringBuilder.
| |
| AppendToString |
Appends the result of calling ToString() on an Exception to the specified StringBuilder.
| |
| AppendType |
Appends the type of an Exception to the specified StringBuilder.
| |
| CloseLayoutRenderer |
Closes the layout renderer.
(Inherited from LayoutRenderer.) | |
| GetCulture |
Get the CultureInfo for rendering the messages to a String (Inherited from LayoutRenderer.) | |
| GetFormatProvider |
Get the IFormatProvider for rendering the messages to a String (Inherited from LayoutRenderer.) | |
| InitializeLayoutRenderer |
Initializes the layout renderer.
(Overrides LayoutRendererInitializeLayoutRenderer.) | |
| Render |
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.) | |
| ResolveServiceT |
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.) | |
| ToString | Returns a string that represents the current object. (Inherited from LayoutRenderer.) |