See the Overview for more information on the parameters specified
here.
int StartLogging(const char* fileName, unsigned long level, unsigned long maxfiles, unsigned long maxfilesize, const char* prefix)¶
Start logging to the specified file at the specified level.
int StartLoggingEx(const char* fileName, unsigned long level, unsigned long maxfiles, unsigned long maxfilesize, const char* prefix, int reuseExistingFiles, int rotateFiles, ExceptionInfo* exceptionInfo)¶
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.
int StartLoggingForPythonThread(const char* filename, unsigned long level, unsigned long maxfiles, unsigned long maxfilesize, const char* prefix)¶
Start logging to the specified file at the specified level but only for the
currently active Python thread.
int StartLoggingForPythonThreadEx(const char* filename, unsigned long level, unsigned long maxfiles, unsigned long maxfilesize, const char* prefix, int reuseExistingFiles, int rotateFiles)¶
Start logging to the specified file at the specified level but only for the
currently active Python thread.
int StartLoggingStderr(unsigned long level, const char* prefix)¶
Start logging to stderr at the specified level.
int StartLoggingStderrEx(unsigned long level, const char* prefix, ExceptionInfo* exceptionInfo)¶
Start logging to stderr at the specified level.
int StartLoggingStdout(unsigned long level, const char* prefix)¶
Start logging to stdout at the given level.
int StartLoggingStdoutEx(unsigned long level, const char* prefix, ExcepitonInfo* exceptionInfo)¶
int LogMessage(unsigned long level, const char* message)¶
Log a message at the specified level.
int LogMessageV(unsigned long level, const char* format, ...)¶
Log a message at the specified level using the standard C printf format with
arguments.
int LogMessageVaList(unsigned long level, const char* format, va_list args)¶
Log a message at the specified level using the standard C printf format with
arguments already encoded in a va_list.
int LogMessageForPythonV(unsigned long level, const char* format, ...)¶
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.
int LogMessageForPythonVaList(unsigned long level, const char* format, va_list args)¶
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 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.
int LogPythonExceptionWithTraceback(const char* message, PyObject* type, PyObject* value, PyObject* traceback)¶
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.