CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Internal Log API

The Internal Log API. More...

Namespaces

namespace  coreflow
 The internal representation of a vx_array.
 

Functions

static void coreflow::Logger::registerLogCallback (vx_context context, vx_log_callback_f callback, vx_bool reentrant)
 Registers a callback facility to the OpenVX implementation to receive error logs.
 
static void coreflow::Logger::addLogEntry (vx_reference ref, vx_status status, const char *message, va_list ap)
 Adds a line to the log.
 

Detailed Description

The Internal Log API.

Function Documentation

◆ addLogEntry()

static void coreflow::Logger::addLogEntry ( vx_reference ref,
vx_status status,
const char * message,
va_list ap )
static

#include <vx_log.h>

Adds a line to the log.

Parameters
[in]refThe reference to add the log entry against. Some valid value must be provided.
[in]statusThe status code. VX_SUCCESS status entries are ignored and not added.
[in]messageThe human readable message to add to the log.
[in]apa list of variable arguments to the message.
Note
Messages may not exceed VX_MAX_LOG_MESSAGE_LEN bytes and will be truncated in the log if they exceed this limit.

◆ registerLogCallback()

static void coreflow::Logger::registerLogCallback ( vx_context context,
vx_log_callback_f callback,
vx_bool reentrant )
static

#include <vx_log.h>

Registers a callback facility to the OpenVX implementation to receive error logs.

Parameters
[in]contextThe overall context to OpenVX.
[in]callbackThe callback function. If NULL, the previous callback is removed.
[in]reentrantIf reentrancy flag is vx_true_e, then the callback may be entered from multiple simultaneous tasks or threads (if the host OS supports this).