mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 11:51:56 +00:00
If burst of log messages was passed to the shell log backend, it was likely that messages were lost because shell had no means to control arrivals of log messages. Added log message enqueueing timeout to the shell instance to allow blocking logger thread if short-term arrival rate exceeded shell capabilities. Added kconfig option for setting log message queue size and timeout in RTT and UART instances. Added section in shell documentation which explains interaction between the logger and shell instance acting as a logger backend. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
11 lines
410 B
Plaintext
11 lines
410 B
Plaintext
config $(module)_LOG_MESSAGE_QUEUE_TIMEOUT
|
|
int "Log message drop timeout (in milliseconds)"
|
|
default $(default-timeout)
|
|
range -1 10000
|
|
help
|
|
If queue with pending log messages is full, oldest log message is
|
|
dropped if queue is still full after requested time (-1 is forever).
|
|
Logger thread is blocked for that period, thus long timeout impacts
|
|
other logger backends and must be used with care.
|
|
|