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.
-
~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.