GomSpace/libcsp — Issue #20: Fine grained csp_debug output filtering
Author: jledet
Created: 2011-11-25 07:38:37+00:00
State: open
Labels: Feature, Medium

Current, all output from csp_debug can be disabled at compile time with the --disable-output configure switch. Some systems may wish to keep e.g. warning and error messages, but not use space for storing the strings for the remaining log levels.

I propose that we create csp_error, csp_warning, csp_info, etc. macros, and create a --with-loglevel configure switch, and let the preprocessor remove unwanted log levels.

BTW, the AVR debug output hack in csp.h also requires fixing. It should be able to use colored output and proper filtering.