omni::log::addModulesChannels
Defined in omni/log/ILog.h
-
inline void omni::log::addModulesChannels()
Registers known channels with the log returned by omniGetLogWithoutAcquire().
The OMNI_LOG_ADD_CHANNEL macro adds the specified channel to a module specific list of channels. This happens pre-
main()
(i.e. during static initialization).Call this function, to iterate over the said list of channels and add them to the log. This function should be called per-module/application.
Upon unloading a plugin, see omni::log::removeModulesChannels to unregister channels registered with this function.
Carbonite plugin authors should consider using CARB_PLUGIN_IMPL, which will call omni::log::addModulesChannels() and omni::log::removeModulesChannels() for you.
Omniverse Native Interface plugin authors do not need to call this function, logging channels are registered and unregistered via OMNI_MODULE_SET_EXPORTS.
Python bindings authors should consider using OMNI_PYTHON_GLOBALS, which will call omni::log::addModulesChannels() and omni::log::removeModulesChannels() for you.
Application author should consider using OMNI_CORE_INIT() which will call omni::log::addModulesChannels() and omni::log::removeModulesChannels() for you.