ILog¶
- class ILog¶
Bases:
ImpactCOMWrapperBase- Summary:
Allows the developer to output messages to the internal log file.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- add(text)¶
- Summary:
Adds a line of text to the log.
- Parameters:
text (str) – The text to add.
- clear()¶
- Summary:
Clears the log file, if it exists.
- isNone()¶
Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.
- save_to_file(file_name)¶
- Summary:
Saves the log to a file.
- Parameters:
file_name (str) – The full path of the file to save to, if the file does not exist it is created.
Examples