log4net SDK Reference

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(
   LoggingEvent loggingEvent
);

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