prf::log namespace

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

enum class Level { Debug = 0, Info = 1, Warning = 2, Error = 3 }
Runtime log severity.

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_LOG_DEBUG(...) in normal code.

void prf::log::error(const char* fmt, ...)

Writes one error log line.

Prefer PRF_LOG_ERROR(...) in normal code.

void prf::log::info(const char* fmt, ...)

Writes one informational log line.

Prefer PRF_LOG_INFO(...) in normal code.

void prf::log::warning(const char* fmt, ...)

Writes one warning log line.

Prefer PRF_LOG_WARNING(...) 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.