|
Operator SDK
Build MIDI processing and UI modes for the Operator device
|
Ergonomic logging: op::log(...) wrappers over the raw ABI log entry. More...
Namespaces | |
| namespace | op |
| Root namespace for the Operator SDK. | |
Functions | |
| void | op::log (LogLevel level, const char *message) |
| Log a message to the device Log Monitor. | |
| void | op::log (LogLevel level, const char *label, int32_t value) |
| Log a labeled integer. | |
| void | op::log (LogLevel level, const char *label, int32_t value, uint8_t decimals) |
| Log a labeled fixed-point number. | |
Ergonomic logging: op::log(...) wrappers over the raw ABI log entry.
Opt-in, header-only. Include on demand:
#include <operator_sdk/log.h> op::log(op::LogLevel::Info, "count", 42); // "count: 42" op::log(op::LogLevel::Info, "rate", 1250, 2); // "rate: 12.50"
op::log wraps OperatorApi::log with number formatting (via op::sdk::text) and a null-safety guard, so a mode never has to build a buffer or reach for printf to log a value.