nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ APP_EVENT_MANAGER_LOG

#define APP_EVENT_MANAGER_LOG (   aeh,
  ... 
)

#include <include/app_event_manager.h>

Value:
do { \
LOG_MODULE_DECLARE(app_event_manager, CONFIG_APP_EVENT_MANAGER_LOG_LEVEL); \
if (IS_ENABLED(CONFIG_APP_EVENT_MANAGER_LOG_EVENT_TYPE)) { \
LOG_INF("e:%s " GET_ARG_N(1, __VA_ARGS__), aeh->type_id->name \
COND_CODE_0(NUM_VA_ARGS_LESS_1(__VA_ARGS__), \
(), \
(, GET_ARGS_LESS_N(1, __VA_ARGS__)) \
)); \
} else { \
LOG_INF(__VA_ARGS__); \
} \
} while (0)

Log event.

This helper macro simplifies event logging.

Parameters
aehPointer to the application event header of the event that is processed by app_event_manager.
...printf- like format string and variadic list of arguments corresponding to the format string.