Table of Contents

Class RawPropertyLayout

Namespace
log4net.Layout
Assembly
log4net.dll

Extract the value of a property from the LoggingEvent

public class RawPropertyLayout : IRawLayout
Inheritance
RawPropertyLayout
Implements
Inherited Members

Remarks

Extract the value of a property from the LoggingEvent

Constructors

RawPropertyLayout()

Constructs a RawPropertyLayout

public RawPropertyLayout()

Properties

Key

The name of the value to lookup in the LoggingEvent Properties collection.

public string Key { get; set; }

Property Value

string

Value to lookup in the LoggingEvent Properties collection

Remarks

String name of the property to lookup in the LoggingEvent.

Methods

Format(LoggingEvent)

Lookup the property for Key

public virtual object Format(LoggingEvent loggingEvent)

Parameters

loggingEvent LoggingEvent

The event to format

Returns

object

returns property value

Remarks

Looks up and returns the object value of the property named Key. If there is no property defined with than name then null will be returned.