Class RawTimeStampLayout
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)
public virtual object Format(LoggingEvent loggingEvent)
Parameters
loggingEventLoggingEventThe 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.