You are viewing documentation for version:
Internal header file for the Z-Wave Platform Abstraction Layer logging.
This file contains macros that enable seamless usage of the ZPAL_LOG API. It provides a way to conditionally compile log messages based on the log level and the component from which the log message originates. In addition, it provides special logging macros intentded only for temporary debugging purposes.
Macros#
#define
The helper macros below are used to determine if logging of a specific component is enabled.
#define
Logs a temporary error message, intended only for ad-hoc debugging.
Macro Definition Documentation#
ZPAL_LOG_FILTER_LEVEL#
#define ZPAL_LOG_FILTER_LEVEL
Value: ( \
((LEVEL == ZPAL_LOG_LEVEL_DEBUG) && (ZW_LOG_CHANNEL_DEBUG[0] != '\0')) \
|| ((LEVEL == ZPAL_LOG_LEVEL_INFO) && (ZW_LOG_CHANNEL_INFO[0] != '\0')) \
|| ((LEVEL == ZPAL_LOG_LEVEL_WARNING) && (ZW_LOG_CHANNEL_WARNING[0] != '\0')) \
|| ((LEVEL == ZPAL_LOG_LEVEL_ERROR) && (ZW_LOG_CHANNEL_ERROR[0] != '\0')) \
)
ZW_LOG_APP_ENABLED#
#define ZW_LOG_APP_ENABLED
Value:0
The helper macros below are used to determine if logging of a specific component is enabled.
They provide a definition for each component, even if they are not explicitly disabled in the configuration. This prevents compile time errors that would otherwise arise from referencing undefined macros.
ZW_LOG_HW_ENABLED#
#define ZW_LOG_HW_ENABLED
Value:0
ZW_LOG_CC_ASSOCIATION_ENABLED#
#define ZW_LOG_CC_ASSOCIATION_ENABLED
Value:0
ZW_LOG_CC_BATTERY_ENABLED#
#define ZW_LOG_CC_BATTERY_ENABLED
Value:0
ZW_LOG_CC_BINARY_SWITCH_ENABLED#
#define ZW_LOG_CC_BINARY_SWITCH_ENABLED
Value:0
ZW_LOG_CC_CENTRAL_SCENE_ENABLED#
#define ZW_LOG_CC_CENTRAL_SCENE_ENABLED
Value:0
ZW_LOG_CC_COLOR_SWITCH_ENABLED#
#define ZW_LOG_CC_COLOR_SWITCH_ENABLED
Value:0
ZW_LOG_CC_DOOR_LOCK_ENABLED#
#define ZW_LOG_CC_DOOR_LOCK_ENABLED
Value:0
ZW_LOG_CC_FIRMWARE_UPDATE_ENABLED#
#define ZW_LOG_CC_FIRMWARE_UPDATE_ENABLED
Value:0
ZW_LOG_CC_INDICATOR_ENABLED#
#define ZW_LOG_CC_INDICATOR_ENABLED
Value:0
ZW_LOG_CC_MULTI_CHANNEL_ENABLED#
#define ZW_LOG_CC_MULTI_CHANNEL_ENABLED
Value:0
ZW_LOG_CC_MULTILEVEL_SWITCH_ENABLED#
#define ZW_LOG_CC_MULTILEVEL_SWITCH_ENABLED
Value:0
ZW_LOG_CC_NOTIFICATION_ENABLED#
#define ZW_LOG_CC_NOTIFICATION_ENABLED
Value:0
ZW_LOG_CC_USER_CODE_ENABLED#
#define ZW_LOG_CC_USER_CODE_ENABLED
Value:0
ZW_LOG_CC_USER_CREDENTIAL_ENABLED#
#define ZW_LOG_CC_USER_CREDENTIAL_ENABLED
Value:0
ZW_LOG_CC_VERSION_ENABLED#
#define ZW_LOG_CC_VERSION_ENABLED
Value:0
ZW_LOG_CC_WAKE_UP_ENABLED#
#define ZW_LOG_CC_WAKE_UP_ENABLED
Value:0
ZW_LOG_CC_ZWAVE_PLUS_INFO_ENABLED#
#define ZW_LOG_CC_ZWAVE_PLUS_INFO_ENABLED
Value:0
ZW_LOG_ZAF_ACTUATOR_ENABLED#
#define ZW_LOG_ZAF_ACTUATOR_ENABLED
Value:0
ZW_LOG_ZAF_APP_TIMER_ENABLED#
#define ZW_LOG_ZAF_APP_TIMER_ENABLED
Value:0
ZW_LOG_ZAF_CMD_PUBLISHER_ENABLED#
#define ZW_LOG_ZAF_CMD_PUBLISHER_ENABLED
Value:0
ZW_LOG_ZAF_COMMON_ENABLED#
#define ZW_LOG_ZAF_COMMON_ENABLED
Value:0
ZW_LOG_ZAF_EVENT_DISTRIBUTOR_ENABLED#
#define ZW_LOG_ZAF_EVENT_DISTRIBUTOR_ENABLED
Value:0
ZW_LOG_ZAF_NVM_ENABLED#
#define ZW_LOG_ZAF_NVM_ENABLED
Value:0
ZW_LOG_ZAF_TRANSPORT_ENABLED#
#define ZW_LOG_ZAF_TRANSPORT_ENABLED
Value:0
ZW_LOG_ZAF_TSE_ENABLED#
#define ZW_LOG_ZAF_TSE_ENABLED
Value:0
ZPAL_LOG_COMPILE_CONDITIONALLY#
#define ZPAL_LOG_COMPILE_CONDITIONALLY
ZPAL_LOG_PRINT#
#define ZPAL_LOG_PRINT
Value: do { \
zpal_log(ZPAL_LOG_NONE, ZPAL_LOG_LEVEL_DEBUG, PFORMAT, ##__VA_ARGS__); \
} while (0)
Logs a temporary error message, intended only for ad-hoc debugging.