src/logger/logger.hpp file

Namespaces

namespace prf
namespace prf::log
PacketRF logging namespace.

Defines

#define LOG_LEVEL_VALUE
#define PRF_LOG_DEBUG(...)
Expands to a debug log call when LOG_LEVEL is DEBUG.
#define PRF_LOG_DEBUG_ENABLED
#define PRF_LOG_ERROR(...)
Expands to an error log call when LOG_LEVEL allows errors.
#define PRF_LOG_ERROR_ENABLED
#define PRF_LOG_INFO(...)
Expands to an informational log call when LOG_LEVEL is DEBUG or INFO.
#define PRF_LOG_INFO_ENABLED
#define PRF_LOG_LEVEL_DEBUG
#define PRF_LOG_LEVEL_ERROR
#define PRF_LOG_LEVEL_INFO
#define PRF_LOG_LEVEL_WARNING
#define PRF_LOG_WARNING(...)
Expands to a warning log call when LOG_LEVEL allows warnings.
#define PRF_LOG_WARNING_ENABLED

Define documentation

#define PRF_LOG_DEBUG(...)

Expands to a debug log call when LOG_LEVEL is DEBUG.

When debug logging is disabled this macro expands to ((void)0), so the call site, format string, and argument evaluation disappear at compile time.

#define PRF_LOG_ERROR(...)

Expands to an error log call when LOG_LEVEL allows errors.

Error logs remain available in ERROR and more verbose builds. When errors are disabled this macro expands to ((void)0).

#define PRF_LOG_INFO(...)

Expands to an informational log call when LOG_LEVEL is DEBUG or INFO.

When info logging is disabled this macro expands to ((void)0), so the call site, format string, and argument evaluation disappear at compile time.

#define PRF_LOG_WARNING(...)

Expands to a warning log call when LOG_LEVEL allows warnings.

Warning logs remain available in WARNING and more verbose builds. When warnings are disabled this macro expands to ((void)0).