Enrollment 28.2.0
Loading...
Searching...
No Matches

CallbackLogger is logger for binary part of libary due to C boundary. More...

#include <Logger.h>

Collaboration diagram for CallbackLogger:

Public Member Functions

LoggerCallBacks GetCallbacks () const
 Get the Callbacks object.
 CallbackLogger (std::shared_ptr< Logger > logger)
 Construct a new Callback Logger object.

Static Public Member Functions

static void LogInfo (void *log, LogMessageCallback composer, void *composerData)
 Log message on info level.
static void LogError (void *log, LogMessageCallback composer, void *composerData)
 Log message on error level.
static void LogDebug (void *log, LogMessageCallback composer, void *composerData)
 Log message on debug level.

Detailed Description

CallbackLogger is logger for binary part of libary due to C boundary.

It provides static functions that can be called from binary part to log messages.

Note
Only for C++

Constructor & Destructor Documentation

◆ CallbackLogger()

CallbackLogger ( std::shared_ptr< Logger > logger)
inlineexplicit

Construct a new Callback Logger object.

Parameters
loggerLogger

Member Function Documentation

◆ GetCallbacks()

LoggerCallBacks GetCallbacks ( ) const
inlinenodiscard

Get the Callbacks object.

Returns
LoggerCallBacks

References LoggerCallBacks::log, LogDebug(), LoggerCallBacks::logDebug, LogError(), LoggerCallBacks::logError, LogInfo(), and LoggerCallBacks::logInfo.

Referenced by ICSExtractor::Extract(), EmbeddingVerifyMatcher::Match(), and ICSVerifyMatcher::Match().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogDebug()

void LogDebug ( void * log,
LogMessageCallback composer,
void * composerData )
inlinestatic

Log message on debug level.

Parameters
loglogger handle provided to binary in LoggerCallBacks::log
composercallback created in binary that is used by header part when message needs to be composed
composerDatanecessary data created in binary for composer

References LogDebug().

Referenced by GetCallbacks(), and LogDebug().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogError()

void LogError ( void * log,
LogMessageCallback composer,
void * composerData )
inlinestatic

Log message on error level.

Parameters
loglogger handle provided to binary in LoggerCallBacks::log
composercallback created in binary that is used by header part when message needs to be composed
composerDatanecessary data created in binary for composer

References LogError().

Referenced by GetCallbacks(), and LogError().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogInfo()

void LogInfo ( void * log,
LogMessageCallback composer,
void * composerData )
inlinestatic

Log message on info level.

Parameters
loglogger handle provided to binary in LoggerCallBacks::log
composercallback created in binary that is used by header part when message needs to be composed
composerDatanecessary data created in binary for composer

References LogInfo().

Referenced by GetCallbacks(), and LogInfo().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: