The Readme from the AudioTools project describes how to use the logger:

AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Debug);

You can log to any object that is a subclass of Print and valid log level values are: Debug, Info, Warning, Error.

But only few peaple realize the power behind this!

So let me give you a couple of ideas:

  • you can log to a file
  • you can use any other standard Arduino class that inherits from Print like Wire, Ethernet, Bluetooth Serial
  • you can use the MultiOutput from this library to send the logging output to multiple destinations
  • you can use the communcation classes of this library to distribute the logging info wirelessly

I hope that I could give you some instpiration what you can do with this….


1 Comment

steven lightfoot · 9. November 2024 at 14:08

Wow, thanks for this. I don’t know how I found you, but I started following you as you obviously know what you are doing with Arduino. I am fairly new to this world, and I have a new project that needs some audio output (recorded voice output to a speak, via WAV files or similar) so what you have posted there (and the other references) will be very useful.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *