llogger.h Header

#include <Layers/llogger.h>

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 Layers::log() is invoked. Pass nullptr to restore logging to stdout.

void log(const LString & message)

Logs a message using the configured log function.

If no custom log function is set, the message is printed to std::cout, prefixed with layers..

Appearance
Theme
—