|
Enrollment 28.2.0
|
The library defines Logger interface to log messages. More...
Classes | |
| class | FormattingComposer |
| Compose message from variadic arguments. More... | |
| class | FormattingLogger |
| It provides functions with format specifier to compose and log message via provided Logger. More... | |
| class | LogMessage |
| Compose Logger message. More... | |
| class | Logger |
| Interface for library logging. More... | |
| class | NullLogger |
| The logger implementation that do not logs. More... | |
| struct | LoggerCallBacks |
| LoggerCallBacks contains logger handle and function pointers as callbacks. More... | |
| class | CallbackLogger |
| CallbackLogger is logger for binary part of libary due to C boundary. More... | |
| class | GlobalLogger |
| Holds instance of Logger. More... | |
Typedefs | |
| using | LogMessageCallback = const char* (*)(void* composerData) |
| Function pointer to compose message in binary. | |
| using | LoggerCallback = void (*)(void* logger, LogMessageCallback composer, void* composerData) |
| Function pointer to log from binary. | |
The library defines Logger interface to log messages.
The library defines Logger interface to log messages. The library knows when and what to log, but how it leaves on library user. The default GlobalLogger is dummy implementation, that ignores all messages on all logging levels. The client can set global Logger for whole library.
The Logger can be implemented also in Java / CSharp bindings.
Client decides which level is logged. The LogMessage is used to avoid unnecessary composition of logger message. LogMessage is composed only when client wants to log it.
For more details see Logging overview.
| using LoggerCallback = void (*)(void* logger, LogMessageCallback composer, void* composerData) |
Function pointer to log from binary.
It is provided by header part and used in binary to log messages. The parameter logger is created and used ONLY in header part.
| logger | is pointer to Logger class used in header part. It is provide to binary in LoggerCallBacks and provide it back from binary to header part. |
| composer | is LogMessageCallback called when header part wants to compose message in binary part of library |
| composerData | data necessary for composer, it is interpreted and used ONLY in binary part of library |
| using LogMessageCallback = const char* (*)(void* composerData) |
Function pointer to compose message in binary.
It is called by header part of library and executed in binary part of library. The parameter composerData is created and used ONLY in binary part.
| composerData | data that is interpreted and used ONLY in binary part of library |