smartinspectpython.sifilerotate

Specifies the log rotate mode for the SIFileProtocol class and derived classes.

NoRotate = <SIFileRotate.NoRotate: 0>

Completely disables the log rotate functionality.

Hourly = <SIFileRotate.Hourly: 1>

Instructs the file protocol to rotate log files hourly.

Daily = <SIFileRotate.Daily: 2>

Instructs the file protocol to rotate log files daily.

Weekly = <SIFileRotate.Weekly: 3>

Instructs the file protocol to rotate log files weekly.

Monthly = <SIFileRotate.Monthly: 4>

Instructs the file protocol to rotate log files monthly.

@classmethod
def Parse(cls, value: str, defaultValue):

Returns an enum value for the given string representation if found, otherwise the default value.

Arguments:
  • value (str): The string representation of the enum value.
  • defaultValue (object): The value to use if an enum could not be determined from the value.

Both the Name and Value of the enum are compared for a match.