CARB_LOG_ADD_CHANNEL#
Defined in carb/logging/LogChannel.h
-
CARB_LOG_ADD_CHANNEL(varName, channelName, description)#
Defines the properties of a log channel and adds it to a module-specific list of channels.
Must be used at global scope and will run static initializers.
See also
CARB_LOG_DECLARE_CHANNEL The CARB_LOG macro can then reference the channel:
CARB_LOG_ADD_CHANNEL(kExtraInfo, "carb.log.extraInfo", "Extra info for carb.log"); // ... CARB_LOG(kExtraInfo, "Additional context: %p", context);
- Parameters:
varName – The variable name used to reference the log channel.
channelName – A literal string giving the name of the channel. The name is used to reference the channel, such as for Settings.
description – A literal string giving the human-readable description of the channel.