Data Structures | Typedefs
Logger

The logging abstraction layer between Interaction Library and its client. More...

Data Structures

struct  IL_Logger
 A structure with information about a callback function that will be called by the Interaction Library for logging purposes. More...
 

Typedefs

typedef void(* IL_Logger_Callback) (IL_LoggingLevel level, const char *text, void *context)
 Prototype of the callback function that Interaction Library calls when a log entry is available. More...
 
typedef struct IL_Logger IL_Logger
 A structure with information about a callback function that will be called by the Interaction Library for logging purposes. More...
 

Detailed Description

The logging abstraction layer between Interaction Library and its client.


Data Structure Documentation

◆ IL_Logger

struct IL_Logger

A structure with information about a callback function that will be called by the Interaction Library for logging purposes.

Data Fields

IL_Logger_Callback callback
 The callback function that is called when a log entry is available. More...
 
IL_LoggingLevel level
 
void * context
 The context that is passed to the callback function. More...
 

Field Documentation

◆ callback

The callback function that is called when a log entry is available.

◆ level

IL_LoggingLevel level

◆ context

void* context

The context that is passed to the callback function.

Typedef Documentation

◆ IL_Logger_Callback

typedef void(* IL_Logger_Callback) (IL_LoggingLevel level, const char *text, void *context)

Prototype of the callback function that Interaction Library calls when a log entry is available.

Parameters
levelThe parameter denotes the highest log level at which the callback function will be called. For example, if "info" is specified, then the callback will be called for "error", "warning" and "info", but not for "debug" and "trace"
textPointer to a null terminated character array formatted in a format specified by Tobii. The parameter is only valid in the scope of the callback.
contextThe context provided by the client in the IL_Logger::context field.

◆ IL_Logger

typedef struct IL_Logger IL_Logger

A structure with information about a callback function that will be called by the Interaction Library for logging purposes.