Click or drag to resize

RunTimeLog Class

Represents a persisted run-time log that tracks last start, stop and running times.
Inheritance Hierarchy
SystemObject
  GSF.IORunTimeLog

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public class RunTimeLog : ISupportLifecycle, IDisposable, 
	IProvideStatus
View Source

The RunTimeLog type exposes the following members.

Constructors
 NameDescription
Public methodRunTimeLog Creates a new run-time log.
Top
Properties
 NameDescription
Public propertyEnabled Gets or sets a boolean value that indicates whether the run-time log is enabled.
Public propertyFileName Gets or sets the file name for the run-time log; file name can be set with a relative path.
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
Public propertyRunningTime Gets last known running-time (10-second resolution).
Public propertyStartTime Gets last known start-time.
Public propertyStatus Gets the current status details about RunTimeLog.
Public propertyStopTime Gets last known stop-time.
Public propertyUpTime Gets the up-time calculation for run-time log, i.e., RunningTime - StartTime (10-second resolution).
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the RunTimeLog object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the RunTimeLog object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the RunTimeLog object is reclaimed by GC.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize Initialize the run-time log.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnProcessException Raises ProcessException event.
Protected methodReadLog Reads the run-time log.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodWriteLog Writes the run-time log - times are in a human readable format.
Top
Events
 NameDescription
Public eventDisposed Raised after the run-time log has been properly disposed.
Public eventProcessException Event is raised when there is an exception encountered while processing run-time log.
Top
Fields
 NameDescription
Public fieldStatic memberDateTimeFormat Date-time format used by RunTimeLog.
Public fieldStatic memberLastRunningTimeKey Log file key name for last running time used by RunTimeLog.
Public fieldStatic memberLastStartTimeKey Log file key name for last start time used by RunTimeLog.
Public fieldStatic memberLastStopTimeKey Log file key name for last stop time used by RunTimeLog.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also