LoggingEvent StartTime Property | Apache log4net™ SDK Documentation

Gets the time when the current process started.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static DateTime StartTime { get; }

    Public Shared ReadOnly Property StartTime As DateTime
    	Get

    public:
    static property DateTime StartTime {
    	DateTime get ();
    }

    static member StartTime : DateTime with get

#### Property Value

Type: DateTime
This is the time when this process started.
Remarks

The TimeStamp is stored internally in UTC and converted to the local time zone for this computer.

Tries to get the start time for the current process. Failing that it returns the time of the first call to this property.

Note that AppDomains may be loaded and unloaded within the same process without the process terminating and therefore without the process start time being reset.

See Also

#### Reference

LoggingEvent Class
log4net.Core Namespace