Table Of Contents

Previous topic

Miscellaneous

Next topic

SObject

Error Handling and Logging

Error handling and logging module, utilities, macros and definitions. See the Error handling and Debugging topic guide for more details.

Functions

speect.errdbg_is_on()

Query whether the Error and Debugging System is activated or not. The system can be activated/deactivate with the compile time definition of SPCT_ERROR_HANDLING. If deactivated then no logging or checking of error codes will occur.

Return type:bool
speect.setLogger(logger)

Set the given logger (instance of the logging.Logger module) as the logger to be used by the Speect Engine for error and debugging purposes.

Parameters:logger (Instance of the logging.Logger module) – The logger to be used by the Speect Engine.