zephyr/tests/subsys/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_api tests: Enable qemu_xtensa logging tests 2022-11-04 11:02:27 -04:00
log_backend_fs tests/samples: use integration_plaforms in more tests/samples 2022-11-29 16:03:23 +01:00
log_backend_init logging: Use STRUCT_SECTION macros for log backend 2022-10-03 10:11:03 +02:00
log_benchmark includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
log_cache tests: logging: Add test for log_cache 2022-10-17 10:16:53 +02:00
log_core_additional tests: logging: log_core_additional: Align test to LOG_PRINTK changes 2022-11-29 10:46:26 +01:00
log_custom_header logging: Add an option for a custom log header 2022-12-22 11:09:59 +01:00
log_immediate tests: logging: log_immediate: Add LOG_PRINTK=n 2022-12-01 00:36:13 +09:00
log_link_order tests: logging: log_link_order: Align to LOG_PRINTK as default 2022-11-29 10:46:26 +01:00
log_links tests: logging: log_links: Align to LOG_PRINTK as default 2022-11-29 10:46:26 +01:00
log_msg tests: arc: enable previously disabled tests on ARCv3 64bit platforms 2022-10-31 11:22:12 +01:00
log_output test: log_output: Exclude qemu_arc_hs5x 2022-10-12 17:40:10 +09:00
log_stack tests/log_stack: Increase idle stack size to 2048 2022-11-08 10:44:36 +01:00
log_stress ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
log_switch_format tests: logging: log_switch_format: Align to LOG_PRINTK as default 2022-11-29 10:46:26 +01:00
log_syst tests: logging: log_syst: Align to LOG_PRINTK as default 2022-11-29 10:46:26 +01:00