Class LogManager - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
explicit LogManager(std::shared_ptr<LogWriter> logWriter)#

Creates a LogManager and associates it with a given LogWriter.

Parameters:

logWriter – Shared pointer to the LogWriter instance.

void log(Message &msg)#

Appends a single message to the thread-local storage.

Parameters:

msg – The message to log.

void flush()#

Flushes the thread-local messages to the LogWriter.

~LogManager()#

Destructor for LogManager.

LogManager &operator<<(const Message &msg)#

Operator << appends a single Message to the current thread’s buffer.

Parameters:

msg – The message to log.

Returns:

Reference to this LogManager.

LogManager &operator<<(const std::string &msg)#

Operator << appends a string as a Message to the current thread’s buffer.

Parameters:

msg – String to be logged.

Returns:

Reference to this LogManager.