ulog
ulog copied to clipboard
Disabling logging breaks compilation
Hi, disabling logging by undefining ULOG_ENABLED breaks compilation due to the replacement of functions with empty do loops.

Also, checking returned values may be a problem with empty loops:
ULOG_INIT();
ulogErr = ULOG_SUBSCRIBE(console_logger, ULOG_TRACE_LEVEL);
assert(ulogErr == ULOG_ERR_NONE);
Initialization and configuration are in few specific places and can be disabled by the caller. Logging function are disabled in ulog if ULOG_EBALED is unset.
Proposed pull request to fix the issue: https://github.com/rdpoor/ulog/pull/10