OMNI_LOG_ADD_CHANNEL

Defined in omni/log/LogChannel.h

OMNI_LOG_ADD_CHANNEL(varName_, channelName_, description_)

Defines the properties of a channel and adds it to a module specific list of channels.

This macro must be called at global scope and is expected to run during static initialization.

Example usage:

OMNI_LOG_ADD_CHANNEL(kImageLoadChannel, "omni.image.load", "Messages when loading an image.");

For each module, this macro should only be called once per channel.

To tell the log about a module’s channels added during static initialization (i.e. by this macro), call omni::log::addModulesChannels().

OMNI_LOG_DECLARE_CHANNEL() does not have to be called before calling this macro.