61b5566e74
There are scenarios when it is necessary to globally redefine a log macro. The existing logging frontend is not sufficient since it redirects at the function level. One example is using pigweed_tokenzier. The pigweed tokenizer depends on intercepting log strings at the macro level to function. Introduce an option to include a custom application provided header named "zephyr_custom_log.h" at the end of log.h. This allows an application to extend the LOG_* macros globally. This change includes a simple test that redefines the core LOG macros to include a custom prefix. Signed-off-by: Rob Barnes <robbarnes@google.com> |
||
---|---|---|
.. | ||
log.h | ||
log_backend.h | ||
log_backend_adsp_hda.h | ||
log_backend_adsp_mtrace.h | ||
log_backend_std.h | ||
log_core.h | ||
log_ctrl.h | ||
log_frontend.h | ||
log_instance.h | ||
log_internal.h | ||
log_link.h | ||
log_msg.h | ||
log_multidomain_helper.h | ||
log_output.h | ||
log_output_custom.h | ||
log_output_dict.h |