|
| void | log (LogLevel level, uint32_t len, const char *msg) |
| | Logs a message. We implement a buffering strategy. Warnings and errors flush immediately. Otherwise, we flush once the buffer is filled or on-demand manually.
|
| |
|
void | flush () |
| |
|
| LogBuffer (const LogBuffer &)=delete |
| |
|
| LogBuffer (LogBuffer &&)=delete |
| |
|
LogBuffer & | operator= (const LogBuffer &)=delete |
| |
|
LogBuffer & | operator= (LogBuffer &&)=delete |
| |
|
|
char | m_buffer [LOG_BUFFER_SIZE] |
| |
|
LogRecord | m_recs [LOG_RECORD_LIMIT] |
| |
|
uint32_t | m_buffer_pos = 0 |
| |
|
uint32_t | m_recs_pos = 0 |
| |
◆ log()
| void gaia::util::detail::LogBuffer::log |
( |
LogLevel |
level, |
|
|
uint32_t |
len, |
|
|
const char * |
msg |
|
) |
| |
|
inline |
Logs a message. We implement a buffering strategy. Warnings and errors flush immediately. Otherwise, we flush once the buffer is filled or on-demand manually.
- Parameters
-
| level | Logging level |
| len | Length of the messagage (including the null-terminating character) |
| msg | Message to log |
The documentation for this struct was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/util/logging.h