Click or drag to resize

RunTimeLogInitialize Method

Initialize the run-time log.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public virtual void Initialize()
View Source

Implements

ISupportLifecycleInitialize
Remarks

Initialization performs initial run-time log read, establishes new start time and enables automatic write log timer.

Last logged stop time will be validated against last logged running time. If the last logged running time is later than the last logged stop time, the stop time will be set to the running time with the assumption that the log file was not properly shut down (e.g., due to abnormal host termination).

It is important to separate initialization from construction such that consumer can attach to events before class is initialized in case initialization causes events to be raised.

See Also