Table of Contents

Class RawTimeStampLayout

Namespace
log4net.Layout
Assembly
log4net.dll

Extract the date from the LoggingEvent

public class RawTimeStampLayout : IRawLayout
Inheritance
RawTimeStampLayout
Implements
Inherited Members

Remarks

Extract the date from the LoggingEvent

Constructors

RawTimeStampLayout()

Constructs a RawTimeStampLayout

public RawTimeStampLayout()

Methods

Format(LoggingEvent)

Gets the TimeStamp as a DateTime.

public virtual object Format(LoggingEvent loggingEvent)

Parameters

loggingEvent LoggingEvent

The event to format

Returns

object

returns the time stamp

Remarks

Gets the TimeStamp as a DateTime.

The time stamp is in local time. To format the time stamp in universal time use RawUtcTimeStampLayout.