zephyr/subsys/logging
Krzysztof Chruscinski a0904ff86a logging: Handle panic occuring before log initialization
Log backends (marked as autostart) are initialized late. By default
in logger thread which has the lowest priority. If log_panic() occurs
earlier no logs is printed because there is no backend enabled.

This patch fixes it by adding log_init() call to log_panic(). Log_init()
can be called multiple times.

This patch ensures that logs are printed if early panic occurs if
backend is configured to auto-start. This is not the case if shell
is acting as log backend.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2019-01-30 23:26:13 +01:00
..
CMakeLists.txt logger: add a SWO backend 2019-01-09 15:30:59 +01:00
Kconfig logging: Refactoring 'in place' mode to reduce memory footprint 2019-01-29 17:24:37 +01:00
Kconfig.template.log_config logging: make LOG_LEVEL depend on LOG 2018-11-02 15:31:44 -05:00
log_backend_native_posix.c logging: Add support for new 'in place' mode to native posix backend 2019-01-29 17:24:37 +01:00
log_backend_net.c log: Make statements evaluate boolean expressions 2019-01-07 08:52:07 -05:00
log_backend_rtt.c logging: log_backend_rtt: Fix panic behavior when no host 2019-01-30 08:21:04 -05:00
log_backend_swo.c logger: add a SWO backend 2019-01-09 15:30:59 +01:00
log_backend_uart.c logging: Add support for new 'in place' mode to UART backend 2019-01-29 17:24:37 +01:00
log_cmds.c log: Make statements evaluate boolean expressions 2019-01-07 08:52:07 -05:00
log_core.c logging: Handle panic occuring before log initialization 2019-01-30 23:26:13 +01:00
log_list.c logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_list.h logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_msg.c logging: Refactoring 'in place' mode to reduce memory footprint 2019-01-29 17:24:37 +01:00
log_output.c logging: Extend log_output to support raw data 2019-01-29 17:24:37 +01:00
sys_log_net.c log: Make statements evaluate boolean expressions 2019-01-07 08:52:07 -05:00
sys_log.c