Class ETLLogLayoutRenderer

Defines a layout renderer for NLog It will introduce

{etllog:LogType=message}
{etllog:LogType=type}
{etllog:LogType=action}
{etllog:LogType=hash}
{etllog:LogType=stage}
{etllog:LogType=loadprocesskey}

as layout renderer for the nlog configuration.

Inheritance
System.Object
NLog.LayoutRenderers.LayoutRenderer
ETLLogLayoutRenderer
Implements
System.IDisposable
Inherited Members
NLog.LayoutRenderers.LayoutRenderer.ToString()
NLog.LayoutRenderers.LayoutRenderer.Dispose()
NLog.LayoutRenderers.LayoutRenderer.Render(NLog.LogEventInfo)
NLog.LayoutRenderers.LayoutRenderer.InitializeLayoutRenderer()
NLog.LayoutRenderers.LayoutRenderer.CloseLayoutRenderer()
NLog.LayoutRenderers.LayoutRenderer.Dispose(System.Boolean)
NLog.LayoutRenderers.LayoutRenderer.GetFormatProvider(NLog.LogEventInfo, System.IFormatProvider)
NLog.LayoutRenderers.LayoutRenderer.GetCulture(NLog.LogEventInfo, System.Globalization.CultureInfo)
NLog.LayoutRenderers.LayoutRenderer.Register<T>(System.String)
NLog.LayoutRenderers.LayoutRenderer.Register(System.String, System.Type)
NLog.LayoutRenderers.LayoutRenderer.Register(System.String, System.Func<NLog.LogEventInfo, System.Object>)
NLog.LayoutRenderers.LayoutRenderer.Register(System.String, System.Func<NLog.LogEventInfo, NLog.Config.LoggingConfiguration, System.Object>)
NLog.LayoutRenderers.LayoutRenderer.LoggingConfiguration
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ETLBox.Logging
Assembly: ETLBox.dll
Syntax
    [LayoutRenderer(&quot;etllog&quot;)]
public class ETLLogLayoutRenderer : LayoutRenderer, ISupportsInitialize, IRenderable, IDisposable

Properties

LogType

The default log type is message

Declaration
    [DefaultParameter]
public string LogType { get; set; }
Property Value
TypeDescription
System.String

Methods

Append(StringBuilder, LogEventInfo)

Declaration
    protected override void Append(StringBuilder builder, LogEventInfo logEvent)
Parameters
TypeNameDescription
System.Text.StringBuilderbuilder
NLog.LogEventInfologEvent
Overrides
NLog.LayoutRenderers.LayoutRenderer.Append(System.Text.StringBuilder, NLog.LogEventInfo)

Implements

System.IDisposable