Easylogger - the clever way of logging

New easy logging library

I just created the "EasyLogger" library. This makes it super easy to do logging in your sketches. Just like this:

LOG_DEBUG("TEST", "Here is a debug line");
LOG_WARNING("TEST", "something is wrong! var1=" << var1 << " and var2=" << var2); 

Gives this output like this:

000:00:01:35:415  DEBUG     (TEST) : Here is a debug line 
000:00:12:58:016  WARNING   (TEST) : something is wrong! var1=17 and var2=Hello 

Search for the library "EasyLogger" in Arduino IDE or in PlatformIO, if you want to try it out :slight_smile:

With EasyLog you can leave your log-statements in your code. When you change the log-level, your code will get smaller or bigger depending on how much logging is printed. if you set the level to NONE, then all log-statements are compiled out.

You can also have a look at github . Here is the full documentation and some examples of full usage.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.