Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

RawTimeStampLayout.Format�Method�

Gets the TimeStamp as a DateTime.

[Visual�Basic]
Overridable�Public�Function�Format( _
���ByVal loggingEvent�As�LoggingEvent�_
)�As�Object�_
����Implements�IRawLayout.Format
[C#]
public�virtual�object�Format(
���LoggingEventloggingEvent
);

Parameters

loggingEvent
The event to format

Return Value

returns the time stamp

Implements

IRawLayout.Format

Remarks

Gets the TimeStamp as a DateTime.

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

See Also

RawTimeStampLayout Class | log4net.Layout Namespace