I'm not sure if this is the route we want to go with this, but this change allows compiling out all logging strings.
Added a cmake option for disabling the logger to save ROM space. Disabling the logger was accomplished by adding a macro to remove the content of logging operations when the cmake option is set.
Sonar is not gonna like this one I suspect. I am open to other approaches - just wanted to submit this one for opinions.
Fixes #416
How has this been tested?
Testing still in progress...
Initial results are that isobus.lib was reduced by 7ish percent with MSVC (debug) and the unit test executable (which generates many log statements) only decreased size by about 1 percent.
Describe your changes
I'm not sure if this is the route we want to go with this, but this change allows compiling out all logging strings.
Sonar is not gonna like this one I suspect. I am open to other approaches - just wanted to submit this one for opinions.
Fixes #416
How has this been tested?
Testing still in progress...
Initial results are that isobus.lib was reduced by 7ish percent with MSVC (debug) and the unit test executable (which generates many log statements) only decreased size by about 1 percent.