Note
All methods return -1 for an error or 0 for success unless otherwise stated.
Note
See the Overview for more information on the parameters specified here.
Start logging to the specified file at the specified level.
Start logging to the specified file at the specified level.
Start logging by reading the environment variables “CX_LOGGING_FILE_NAME”, “CX_LOGGING_LEVEL”, “CX_LOGGING_MAX_FILES”, “CX_LOGGING_MAX_FILE_SIZE”, “CX_LOGGING_PREFIX” to determine the parameters to the StartLogging method.
Start logging to the specified file at the specified level but only for the currently active Python thread.
Start logging to the specified file at the specified level but only for the currently active Python thread.
Start logging to stderr at the specified level.
Start logging to stderr at the specified level.
Start logging to stdout at the given level.
Start logging to stdout at the given level.
Stop logging.
Stop logging in the current Python thread.
Log message at CRITICAL level.
Log message at DEBUG level.
Log message at ERROR level.
Log message at INFO level.
Log a message at the specified level.
Log a message at the specified level using the standard C printf format with arguments.
Log a message at the specified level using the standard C printf format with arguments already encoded in a va_list.
Log a message at the specified level in the logging file defined for the current Python thread using the standard C printf format with arguments.
Log a message at the specified level in the logging file defined for the current Python thread using the standard C printf format with arguments already encoded in a va_list.
Log message regardless of what level is currently being logged. This is primarily of use for logging tracing messages.
Log message at WARNING level.
Log the contents of the error object. This method expects attributes named “message”, “templateId”, “arguments”, “traaceback”, “details” and “logLevel”. If the “logLevel” attribute is missing logging is done at the ERROR level. If any of the other attributes are missing or of the wrong type that fact is logged and processing continues. This function returns -1 at all times as a convenience to the caller.
Log the current Python exception with the given message as the first message that is written to the log. The exception is logged with traceback if the traceback module is available. This function returns -1 at all times as a convenience to the caller.
Log the specified Python exception with the given message as the first message that is written to the log. The exception is logged with traceback if the traceback module is available. This function returns -1 at all times as a convenience to the caller.
Return the current logging level.
Return the logging state for the current Python thread.
Return 1 if the current logging state is such that a message at the specified level should be logged. This is only used for cases where the amount of time required to calculate the message to log is sufficient that checking first would noticeably improve performance; otherwise, the overhead of acquiring and releasing the lock twice would be detrimental to performance.
Return 1 if logging has been started and 0 otherwise.
Set the current logging level.
Set the logging state for the current Python thread.