Scanbot SDK
|
Functions | |
SBSDK_API scanbotsdk_error_code_t | scanbotsdk_set_logging (bool enable) |
Enable or disable logging. | |
SBSDK_API scanbotsdk_error_code_t | scanbotsdk_set_log_handler (void(*log_handler)(const char *message)) |
Sets the log handler. | |
SBSDK_API scanbotsdk_error_code_t | scanbotsdk_reset_log_handler () |
Resets any previously set log handler. | |
SBSDK_API scanbotsdk_error_code_t | scanbotsdk_log_error (const char *message) |
Logs an error message using the Scanbot SDK logger. | |
SBSDK_API scanbotsdk_error_code_t scanbotsdk_log_error | ( | const char * | message | ) |
Logs an error message using the Scanbot SDK logger.
message | The error message, a null terminated string. |
SBSDK_API scanbotsdk_error_code_t scanbotsdk_reset_log_handler | ( | ) |
Resets any previously set log handler.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_set_log_handler | ( | void(*)(const char *message) | log_handler | ) |
Sets the log handler.
log_handler | A pointer to the new log handler function. |
SBSDK_API scanbotsdk_error_code_t scanbotsdk_set_logging | ( | bool | enable | ) |
Enable or disable logging.
By default logging is enabled and logs will be written to the console. Call scanbotsdk_set_log_handler to set a custom log handler.
enable | True to enable logging, false to disable logging |