zephyr/include/zephyr/logging
Rob Barnes 61b5566e74 logging: Add an option for a custom log header
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>
2022-12-22 11:09:59 +01:00
..
log.h logging: Add an option for a custom log header 2022-12-22 11:09:59 +01:00
log_backend.h logging: Initial multidomain support 2022-10-17 10:16:53 +02:00
log_backend_adsp_hda.h dma: HDA rename prefix from cAVS to ADSP 2022-07-14 17:53:46 +00:00
log_backend_adsp_mtrace.h logging: Intel ADSP mtrace logging backend 2022-08-29 10:43:42 +02:00
log_backend_std.h logging: Rename files and test from log_msg2 to log_msg 2022-06-23 09:10:33 +02:00
log_core.h logging: Fix case when LOG_LEVEL is 0 2022-12-09 09:46:11 -05:00
log_ctrl.h logging: Initial multidomain support 2022-10-17 10:16:53 +02:00
log_frontend.h logging: Removing v2 suffix from logging names 2022-06-23 15:46:37 -04:00
log_instance.h include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
log_internal.h logging: Initial multidomain support 2022-10-17 10:16:53 +02:00
log_link.h logging: Initial multidomain support 2022-10-17 10:16:53 +02:00
log_msg.h tests: Enable qemu_xtensa logging tests 2022-11-04 11:02:27 -04:00
log_multidomain_helper.h logging: Add remote link and backend 2022-10-17 10:16:53 +02:00
log_output.h logging: enable setting custom logging output func 2022-10-06 19:15:35 -04:00
log_output_custom.h logging: enable setting custom logging output func 2022-10-06 19:15:35 -04:00
log_output_dict.h logging: Removing v2 suffix from logging names 2022-06-23 15:46:37 -04:00