arduino-logger icon indicating copy to clipboard operation
arduino-logger copied to clipboard

Create a log disable strategy

Open phillipjohnston opened this issue 4 years ago • 0 comments

What if a user wanted to compile-out all logging without relying on the macros? In this case, I could see using a "log disable" strategy of some sort.

We could make a class that doesn't perform any logging. With it, we can see how effective such a strategy would be. Do calls eventually get compiled out because they are no-ops? Does the class itself?

phillipjohnston avatar Oct 15 '19 18:10 phillipjohnston