void myqtt_color_log_enable ( MyQttCtx ctx,
axl_bool  status 
)

Enable console color log.

Note that this doesn't enable logging, just selects color messages if logging is already enabled, see myqtt_log_enable().

This is mainly useful to hunt messages using its color:

  • red: errors, critical
  • yellow: warnings
  • green: info, debug

You can also enable color log by setting MYQTT_DEBUG_COLOR environment variable to 1.

Parameters
ctxThe context where the operation will be performed.
statusaxl_true enable color log, axl_false disables it.