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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class Log4JXmlEventLayoutRenderer : LayoutRenderer, 
	IUsesStackTrace

The Log4JXmlEventLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodLog4JXmlEventLayoutRenderer
Initializes a new instance of the Log4JXmlEventLayoutRenderer class.
Top
Properties
  NameDescription
Public propertyAppInfo
Gets or sets the log4j:event log4japp-xml-element. By default it's the friendly name of the current AppDomain.
Public propertyFormattedMessage
Gets or sets the log4j:event message-xml-element. Default: ${message}
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 propertyIncludeEventProperties
Gets or sets the option to include all properties from the log events
Public propertyIncludeNdc
Gets or sets whether to include log4j:NDC in output from ScopeContext nested context.
Public propertyIncludeNLogData
Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema.
Public propertyIncludeScopeNested
Gets or sets whether to include log4j:NDC in output from ScopeContext nested context.
Public propertyIncludeScopeProperties
Gets or sets whether to include the contents of the ScopeContext properties-dictionary.
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.
Public propertyLoggerName
Gets or sets the log4j:event logger-xml-attribute. Default: ${logger}
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyNdcItemSeparator
Gets or sets the stack separator for log4j:NDC in output from ScopeContext nested context.
Public propertyScopeNestedSeparator
Gets or sets the stack separator for log4j:NDC in output from ScopeContext nested context.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Public propertyWriteThrowableCData
Gets or sets whether the log4j:throwable xml-element should be written as CDATA
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.
(Overrides LayoutRendererInitializeLayoutRenderer.)
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