log namespace
#include <logger/logger.hpp>
PacketRF logging namespace.
This namespace provides the low-level logging sink used by the firmware. Normal application and module code should prefer the PRF_LOG_* macros defined below, because those macros apply compile-time log-level gating at the call site.
Enums
Functions
- void debug(const char* fmt, ...)
- Writes one debug log line.
- void error(const char* fmt, ...)
- Writes one error log line.
- void info(const char* fmt, ...)
- Writes one informational log line.
- void warning(const char* fmt, ...)
- Writes one warning log line.
- void write(Level level, const char* fmt, ...)
- Writes one formatted log line using an explicitly selected severity.
Function documentation
void prf:: log:: debug(const char* fmt,
...)
Writes one debug log line.
Prefer PRF_ in normal code.
void prf:: log:: error(const char* fmt,
...)
Writes one error log line.
Prefer PRF_ in normal code.
void prf:: log:: info(const char* fmt,
...)
Writes one informational log line.
Prefer PRF_ in normal code.
void prf:: log:: warning(const char* fmt,
...)
Writes one warning log line.
Prefer PRF_ in normal code.
void prf:: log:: write(Level level,
const char* fmt,
...)
Writes one formatted log line using an explicitly selected severity.
This is the lowest-level public logging entry point. Most firmware code should use the PRF_LOG_* macros instead so disabled log levels disappear completely from the compiled call site.