SystemInfo ProcessStartTime Property | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Get the start time for the current process.

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

C#
VB
C++
F#
Copy

    [ObsoleteAttribute("Use ProcessStartTimeUtc and convert to local time if needed.")]
    public static DateTime ProcessStartTime { get; }

    <ObsoleteAttribute("Use ProcessStartTimeUtc and convert to local time if needed.")>
    Public Shared ReadOnly Property ProcessStartTime As DateTime
    	Get

    public:
    [ObsoleteAttribute(L"Use ProcessStartTimeUtc and convert to local time if needed.")]
    static property DateTime ProcessStartTime {
    	DateTime get ();
    }

    [<ObsoleteAttribute("Use ProcessStartTimeUtc and convert to local time if needed.")>]
    static member ProcessStartTime : DateTime with get

#### Property Value

Type: DateTime
Remarks

This is the time at which the log4net library was loaded into the AppDomain. Due to reports of a hang in the call to System.Diagnostics.Process.StartTime this is not the start time for the current process.

The log4net library should be loaded by an application early during its startup, therefore this start time should be a good approximation for the actual start time.

Note that AppDomains may be loaded and unloaded within the same process without the process terminating, however this start time will be set per AppDomain.

See Also

#### Reference

SystemInfo Class
log4net.Util Namespace