As mentioned earlier, you can write custom handlers to do whatever you need to with the information string to be logged. As an example, you can create a handler to send messages to:

  • The serial port (UART)
  • A file
  • To the Adafruit IO data service
  • To a Bluetooth connection

This capability is very helpful when you do not want to mix debug output with output that your code is generating.

The following pages go over the methods of outputting to the differing streams.

This guide was first published on Mar 18, 2019. It was last updated on Apr 19, 2024.

This page (Adding Handlers) was last updated on Mar 08, 2024.

Text editor powered by tinymce.