TestimoX

API Reference

Class

EventLogSizePolicy

Namespace ComputerX.EventLog
Assembly ComputerX
Modifiers static

Windows Event Log size limits and validation helpers.

Inheritance

  • Object
  • EventLogSizePolicy

Methods

public static Boolean IsValidMaximumSize(Nullable<Int64> maximumSizeInBytes) #
Returns: Boolean

Determines whether a configured Windows Event Log maximum size is within supported platform limits.

Parameters

maximumSizeInBytes System.Nullable{System.Int64} requiredposition: 0
Configured maximum size in bytes.

Returns

true when the size is present, in range, and aligned to the 64 KB event-log allocation unit.

public static Boolean IsValidMaximumSizeInKilobytes(Nullable<Int32> maximumSizeInKilobytes) #
Returns: Boolean

Determines whether a configured Windows Event Log maximum size in kilobytes is within supported platform limits.

Parameters

maximumSizeInKilobytes System.Nullable{System.Int32} requiredposition: 0
Configured maximum size in kilobytes.

Returns

true when the size is present, in range, and aligned to the 64 KB event-log allocation unit.

public static Boolean IsWithinMaximumSizeInMegabytes(Nullable<Double> sizeInMegabytes) #
Returns: Boolean

Determines whether an observed event log file size is within the platform maximum.

Parameters

sizeInMegabytes System.Nullable{System.Double} requiredposition: 0
Observed size in megabytes.

Returns

true when the size is present and does not exceed the platform maximum.

Fields

public const Int64 MinimumLogSizeBytes #

Minimum configured Windows Event Log size in bytes.

Value: 65536
public const Int64 SizeQuantumBytes #

Windows Event Log size allocation unit in bytes.

Value: 65536
public const Int64 MaximumLogSizeBytes #

Maximum configured Windows Event Log size in bytes.

Value: 4294901760