Skip to content

Logging

Phil Schatzmann edited this page May 6, 2026 · 4 revisions

This project includes a simple custom logging system.

When running on an ESP32 microcontroller, the built-in ESP32 logging is used by default. You can configure it via the Arduino Tools menu.

To use the custom logger instead, disable the ESP32 logger in the configuration file by setting MAVLINK_USE_ESP_LOGGER to false in MavlinkConfig.h.

Once the custom logger is enabled, you can configure it in your sketch by specifying the log level and output stream:

MavlinkLogger.begin(MavlinkLoggerClass::Level::INFO, Serial);

Clone this wiki locally