log_category.hpp File Reference
#include <boost/preprocessor/tuple/elem.hpp>

Macros

#define KZ_LOG_ENABLED_CATEGORY
 The enabled log category state. More...
 
#define KZ_LOG_DISABLED_CATEGORY
 The disabled log category state. More...
 
#define KZ_LOG_CREATE_CATEGORY(state, name)
 To create new log category, use KZ_LOG_CREATE_CATEGORY macro. More...
 
#define KZ_LOG_GET_CATEGORY_STATE(category)
 To get state of the log category, use KZ_LOG_GET_CATEGORY_STATE macro. More...
 
#define KZ_LOG_GET_CATEGORY_NAME(category)
 To get the name of the log category, use KZ_LOG_GET_CATEGORY_NAME. More...
 
#define KZ_LOG_IS_CATEGORY_ENABLED(category)
 To check if the log category is enabled, use KZ_LOG_IS_CATEGORY_ENABLED. More...
 
#define KZ_LOG_CATEGORY_GENERIC_DEFAULT_STATE
 Define this macro to KZ_LOG_ENABLED_CATEGORY or KZ_LOG_DISABLED_CATEGORY to enable or disable KZ_LOG_CATEGORY_GENERIC category. More...
 
#define KZ_LOG_CATEGORY_GENERIC
 The generic log category. More...
 
#define KZ_LOG_CATEGORY_DEBUG_DEFAULT_STATE
 Define this macro to KZ_LOG_ENABLED_CATEGORY or KZ_LOG_DISABLED_CATEGORY to enable or disable KZ_LOG_CATEGORY_DEBUG category. More...
 
#define KZ_LOG_CATEGORY_DEBUG
 The debug log category. More...
 
#define KZ_LOG_CATEGORY_GRAPHICS_MESH_EXTRA
 The log category for extra graphics mesh log messages. More...
 
#define KZ_LOG_CATEGORY_EGL_EXTRA
 The log category for extra EGL log messages. More...
 

Detailed Description

Log category

You can use the log category to group log messages that include information related to the same functionality. You can assign own log category to each log message group. The log category is a macro that you pass to Logging macros macros when you write log messages. You must use KZ_LOG_CREATE_CATEGORY macro do define new log category. You can enable or disable new log category by passing KZ_LOG_ENABLED_CATEGORY or KZ_LOG_DISABLED_CATEGORY macros as first parameter of the KZ_LOG_CREATE_CATEGORY macro. For description on how the state of the log category is used in the log message filtering, see Message classification and filtering.

There are predefined log groups: the KZ_LOG_CATEGORY_GENERIC is usually used to log messages that can not be assigned to any existing log category, the KZ_LOG_CATEGORY_DEBUG is solely used internally by the kzLogDebug macro.