llogger.h Header
Type Aliases
| using | LogFunction | Function pointer type for custom log message handlers. |
Functions
| void | set_log_function(LogFunction fn) |
| void | log(const LString & message) |
Type Alias Documentation
using LogFunction = void (*)(const LString &)
Function pointer type for custom log message handlers.
Applications can provide their own logging function to integrate with existing logging systems.
Function Documentation
void set_log_function(LogFunction fn)
Sets a custom logging function.
The provided function will be called whenever log() is invoked. Pass nullptr to disable logging.
void log(const LString & message)
Logs a message using the configured log function.
If no custom log function is set, the message is discarded.