Macros | |
#define | KZ_LOG_CREATE_LEVEL(value, name) |
Creates a log level. | |
#define | KZ_LOG_GET_LEVEL_NAME(level) |
Gets a log level name. | |
#define | KZ_LOG_GET_LEVEL_VALUE(level) |
Gets a log level value. | |
#define | KZ_LOG_IS_LEVEL_ENABLED(level) |
Checks whether a log level is enabled. | |
Use these macros to define new log levels and operate on defined log levels.
#define KZ_LOG_CREATE_LEVEL | ( | value, | |
name ) |
Creates a log level.
Use the value
parameter to assign to the new log level a unique integer value that is used to order the log levels. This value is used in log message filtering. See Classifying and filtering log messages.
Use the name
parameter to provide the log level name, which the logger uses when writing messages to the log.
value | Unique integer value used to implement the log level ordering. See Log Level. |
name | The name of the log level. |
#define KZ_LOG_GET_LEVEL_VALUE | ( | level | ) |
Gets a log level value.
level | The log level. |
#define KZ_LOG_GET_LEVEL_NAME | ( | level | ) |
Gets a log level name.
level | The level macro. For example, see KZ_LOG_LEVEL_ERROR. |
#define KZ_LOG_IS_LEVEL_ENABLED | ( | level | ) |
Checks whether a log level is enabled.
level | The log level. |