Click or drag to resize
Log4JXmlEventLayoutRenderer Class
XML event description compatible with log4j, Chainsaw and NLogViewer.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersLog4JXmlEventLayoutRenderer

Namespace: NLog.LayoutRenderers
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public class Log4JXmlEventLayoutRenderer : LayoutRenderer

The Log4JXmlEventLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodLog4JXmlEventLayoutRenderer
Initializes a new instance of the Log4JXmlEventLayoutRenderer class.
Public methodLog4JXmlEventLayoutRenderer(IAppDomain)
Initializes a new instance of the Log4JXmlEventLayoutRenderer class.
Top
Properties
  NameDescription
Public propertyAppInfo
Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain.
Public propertyIncludeCallSite
Gets or sets a value indicating whether to include call site (class and method name) in the information sent over the network.
Public propertyIncludeMdc
Gets or sets a value indicating whether to include contents of the MappedDiagnosticsContext dictionary.
Public propertyIncludeNdc
Gets or sets a value indicating whether to include contents of the NestedDiagnosticsContext stack.
Public propertyIncludeNLogData
Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema.
Public propertyIncludeSourceInfo
Gets or sets a value indicating whether to include source info (file name and line number) in the information sent over the network.
Public propertyIndentXml
Gets or sets a value indicating whether the XML should use spaces for indentation.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyNdcItemSeparator
Gets or sets the NDC item separator.
Top
Methods
  NameDescription
Protected methodAppend
Renders the XML logging event and appends it to the specified StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Inherited from LayoutRenderer.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from LayoutRenderer.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from LayoutRenderer.)
Protected methodInitializeLayoutRenderer
Initializes the layout renderer.
(Inherited from LayoutRenderer.)
Public methodRender
Renders the the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Public methodToString
Returns a String that represents this instance.
(Inherited from LayoutRenderer.)
Top
See Also