![]() |
LogIt++
Header-only, macro-first C++ logging library
|
A collection of macros for streamlined logging operations. More...
| #define | LOGIT_FUNCTION __func__ |
| #define | LOGIT_ENUM_TO_STR_CASE(value) |
Expands to a case statement returning the stringified enum value. | |
| #define | LOGIT_LEVEL_TRACE 0 |
| #define | LOGIT_LEVEL_DEBUG 1 |
| #define | LOGIT_LEVEL_INFO 2 |
| #define | LOGIT_LEVEL_WARN 3 |
| #define | LOGIT_LEVEL_ERROR 4 |
| #define | LOGIT_LEVEL_FATAL 5 |
| #define | LOGIT_CONCAT_IMPL(x, y) |
| Concatenate two tokens without macro expansion. | |
| #define | LOGIT_CONCAT(x, y) |
| Concatenate two tokens with macro expansion. | |
| #define | LOGIT_MDC_PUT(key, value) |
| #define | LOGIT_MDC_REMOVE(key) |
| #define | LOGIT_MDC_CLEAR() |
| #define | LOGIT_NDC_PUSH(value) |
| #define | LOGIT_NDC_POP() |
| #define | LOGIT_NDC_CLEAR() |
| #define | LOGIT_NDC_GUARD(value) |
| #define | LOGIT_COMPILED_LEVEL LOGIT_LEVEL_TRACE |
| #define | LOGIT_PERROR_TRACE(message) |
| #define | LOGIT_PERROR_DEBUG(message) |
| #define | LOGIT_PERROR_INFO(message) |
| #define | LOGIT_PERROR_WARN(message) |
| #define | LOGIT_PERROR_ERROR(message) |
| #define | LOGIT_PERROR_FATAL(message) |
| #define | LOGIT_WINERR_TRACE(message) |
| #define | LOGIT_WINERR_DEBUG(message) |
| #define | LOGIT_WINERR_INFO(message) |
| #define | LOGIT_WINERR_WARN(message) |
| #define | LOGIT_WINERR_ERROR(message) |
| #define | LOGIT_WINERR_FATAL(message) |
| #define | LOGIT_SYSERR_TRACE(message) |
| #define | LOGIT_SYSERR_DEBUG(message) |
| #define | LOGIT_SYSERR_INFO(message) |
| #define | LOGIT_SYSERR_WARN(message) |
| #define | LOGIT_SYSERR_ERROR(message) |
| #define | LOGIT_SYSERR_FATAL(message) |
A collection of macros for streamlined logging operations.
This group includes macros for logging messages at various levels, adding loggers, managing log settings, and controlling loggers.
LOGIT_PERROR_<LEVEL> on POSIX and LOGIT_WINERR_<LEVEL> on Windows to automatically attach decoded system error codes to your message. The cross-platform LOGIT_SYSERR_<LEVEL> macro aliases to the appropriate variant. LOGIT_OS_ERROR_JOIN, LOGIT_POSIX_ERROR_PATTERN, or LOGIT_WINDOWS_ERROR_PATTERN before including <logit.hpp>.LOGIT_QUEUE_DROP_NEWEST, LOGIT_QUEUE_DROP_OLDEST, or LOGIT_QUEUE_BLOCK with LOGIT_SET_QUEUE_POLICY. | #define LOGIT_COMPILED_LEVEL LOGIT_LEVEL_TRACE |
Definition at line 87 of file log_macros.hpp.
| #define LOGIT_CONCAT | ( | x, | |
| y ) |
Concatenate two tokens with macro expansion.
| x | First token. |
| y | Second token. |
Definition at line 51 of file log_macros.hpp.
| #define LOGIT_CONCAT_IMPL | ( | x, | |
| y ) |
Concatenate two tokens without macro expansion.
| x | First token. |
| y | Second token. |
Definition at line 46 of file log_macros.hpp.
| #define LOGIT_ENUM_TO_STR_CASE | ( | value | ) |
Expands to a case statement returning the stringified enum value.
| value | The enum value. |
Definition at line 35 of file log_macros.hpp.
| #define LOGIT_FUNCTION __func__ |
Definition at line 30 of file log_macros.hpp.
| #define LOGIT_LEVEL_DEBUG 1 |
Definition at line 38 of file log_macros.hpp.
| #define LOGIT_LEVEL_ERROR 4 |
Definition at line 41 of file log_macros.hpp.
| #define LOGIT_LEVEL_FATAL 5 |
Definition at line 42 of file log_macros.hpp.
| #define LOGIT_LEVEL_INFO 2 |
Definition at line 39 of file log_macros.hpp.
| #define LOGIT_LEVEL_TRACE 0 |
Definition at line 37 of file log_macros.hpp.
| #define LOGIT_LEVEL_WARN 3 |
Definition at line 40 of file log_macros.hpp.
| #define LOGIT_MDC_CLEAR | ( | ) |
Definition at line 64 of file log_macros.hpp.
| #define LOGIT_MDC_PUT | ( | key, | |
| value ) |
Definition at line 62 of file log_macros.hpp.
| #define LOGIT_MDC_REMOVE | ( | key | ) |
Definition at line 63 of file log_macros.hpp.
| #define LOGIT_NDC_CLEAR | ( | ) |
Definition at line 67 of file log_macros.hpp.
| #define LOGIT_NDC_GUARD | ( | value | ) |
Definition at line 68 of file log_macros.hpp.
| #define LOGIT_NDC_POP | ( | ) |
Definition at line 66 of file log_macros.hpp.
| #define LOGIT_NDC_PUSH | ( | value | ) |
Definition at line 65 of file log_macros.hpp.
| #define LOGIT_PERROR_DEBUG | ( | message | ) |
Definition at line 107 of file log_macros.hpp.
| #define LOGIT_PERROR_ERROR | ( | message | ) |
Definition at line 125 of file log_macros.hpp.
| #define LOGIT_PERROR_FATAL | ( | message | ) |
Definition at line 131 of file log_macros.hpp.
| #define LOGIT_PERROR_INFO | ( | message | ) |
Definition at line 113 of file log_macros.hpp.
| #define LOGIT_PERROR_TRACE | ( | message | ) |
Definition at line 101 of file log_macros.hpp.
| #define LOGIT_PERROR_WARN | ( | message | ) |
Definition at line 119 of file log_macros.hpp.
| #define LOGIT_SYSERR_DEBUG | ( | message | ) |
Definition at line 194 of file log_macros.hpp.
| #define LOGIT_SYSERR_ERROR | ( | message | ) |
Definition at line 197 of file log_macros.hpp.
| #define LOGIT_SYSERR_FATAL | ( | message | ) |
Definition at line 198 of file log_macros.hpp.
| #define LOGIT_SYSERR_INFO | ( | message | ) |
Definition at line 195 of file log_macros.hpp.
| #define LOGIT_SYSERR_TRACE | ( | message | ) |
Definition at line 193 of file log_macros.hpp.
| #define LOGIT_SYSERR_WARN | ( | message | ) |
Definition at line 196 of file log_macros.hpp.
| #define LOGIT_WINERR_DEBUG | ( | message | ) |
Definition at line 177 of file log_macros.hpp.
| #define LOGIT_WINERR_ERROR | ( | message | ) |
Definition at line 180 of file log_macros.hpp.
| #define LOGIT_WINERR_FATAL | ( | message | ) |
Definition at line 181 of file log_macros.hpp.
| #define LOGIT_WINERR_INFO | ( | message | ) |
Definition at line 178 of file log_macros.hpp.
| #define LOGIT_WINERR_TRACE | ( | message | ) |
Definition at line 176 of file log_macros.hpp.
| #define LOGIT_WINERR_WARN | ( | message | ) |
Definition at line 179 of file log_macros.hpp.