|
Enrollment 28.2.0
|
CallbackLogger is logger for binary part of libary due to C boundary. More...
#include <Logger.h>
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. | |
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.
|
inlineexplicit |
|
inlinenodiscard |
Get the Callbacks object.
References LoggerCallBacks::log, LogDebug(), LoggerCallBacks::logDebug, LogError(), LoggerCallBacks::logError, LogInfo(), and LoggerCallBacks::logInfo.
Referenced by ICSExtractor::Extract(), EmbeddingVerifyMatcher::Match(), and ICSVerifyMatcher::Match().
|
inlinestatic |
Log message on debug level.
| log | logger handle provided to binary in LoggerCallBacks::log |
| composer | callback created in binary that is used by header part when message needs to be composed |
| composerData | necessary data created in binary for composer |
References LogDebug().
Referenced by GetCallbacks(), and LogDebug().
|
inlinestatic |
Log message on error level.
| log | logger handle provided to binary in LoggerCallBacks::log |
| composer | callback created in binary that is used by header part when message needs to be composed |
| composerData | necessary data created in binary for composer |
References LogError().
Referenced by GetCallbacks(), and LogError().
|
inlinestatic |
Log message on info level.
| log | logger handle provided to binary in LoggerCallBacks::log |
| composer | callback created in binary that is used by header part when message needs to be composed |
| composerData | necessary data created in binary for composer |
References LogInfo().
Referenced by GetCallbacks(), and LogInfo().