Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging: add API to trigger immediate processing of logs #71530

Merged
merged 2 commits into from
May 13, 2024

Conversation

xodus7
Copy link
Contributor

@xodus7 xodus7 commented Apr 15, 2024

There are use cases where it's beneficial to trigger the log thread to process log messages as soon as able instead of waiting for the processing timer or threshold triggers. An example would be to flush the log buffer before entering the idle thread after forcing a system power state.

Test has code to test conditions where CONFIG_LOG_PROCESS_THREAD=y
but this option was not enabled in any of the tests. This code was
using removed APIs and did not build anymore. This change enables
the log thread for the logging.async and fixes the tests.

Signed-off-by: Corey Wharton <xodus7@cwharton.com>
There are use cases where it's beneficial to trigger the log
thread to process log messages as soon as able instead of waiting
for the processing timer or threshold triggers. An example would be
to flush the log buffer before entering the idle thread after
forcing a system power state.

Signed-off-by: Corey Wharton <xodus7@cwharton.com>
@nashif nashif merged commit bf114c6 into zephyrproject-rtos:main May 13, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants