Skip to content

The Logger

Phil Schatzmann edited this page Oct 4, 2025 · 4 revisions

The emulator contains a logger that uses the ArduinoLogger class that can be accessed via the Logger object. To set the output stream to Serial and log level to Warning you call:

Serial.begin(115200); // Start serial communication at 115200 baud
Logger.begin(Serial, ArduinoLogger::Warning);

The following levels are supported: Debug, Info, Warning, Error

Clone this wiki locally