|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Proxy object returned by debug/info/warning/error. More...
#include <headers/utility/logging/logger.hpp>
Public Member Functions | |
| LogMessage (Logger *logger, LogLevel level, std::source_location loc, bool active) | |
| Construct a LogMessage. | |
| template<typename T > | |
| LogMessage & | operator<< (T &&value) |
| Stream any value into the log buffer. | |
| LogMessage & | operator<< (std::ostream &(*manip)(std::ostream &)) |
| Stream an ostream manipulator (e.g. std::endl). | |
| ~LogMessage () | |
| Destructor emits the accumulated message via the parent logger. | |
Proxy object returned by debug/info/warning/error.
Accumulates streamed data and flushes a LogRecord to the parent Logger on destruction.
Definition at line 131 of file logger.hpp.
|
inline |
Construct a LogMessage.
| logger | Parent logger pointer. |
| level | Severity level. |
| loc | Source location of the call site. |
| active | Whether the message should actually be emitted. |
Definition at line 161 of file logger.hpp.
|
inline |
Destructor emits the accumulated message via the parent logger.
Output is guarded so an exception thrown by a logger implementation cannot terminate the process, even during stack unwinding.
Definition at line 205 of file logger.hpp.

|
inline |
Stream an ostream manipulator (e.g. std::endl).
| manip | Manipulator function pointer. |
Definition at line 189 of file logger.hpp.
|
inline |
Stream any value into the log buffer.
| T | Type of the streamed value. |
| value | Value to append. |
Definition at line 176 of file logger.hpp.