Table of Contents

Class RawUtcTimeStampLayout

Namespace
log4net.Layout
Assembly
log4net.dll

Extract the date from the LoggingEvent

public class RawUtcTimeStampLayout : IRawLayout
Inheritance
RawUtcTimeStampLayout
Implements
Inherited Members

Remarks

Extract the date from the LoggingEvent

Constructors

RawUtcTimeStampLayout()

Constructs a RawUtcTimeStampLayout

public RawUtcTimeStampLayout()

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 universal time. To format the time stamp in local time use RawTimeStampLayout.