-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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: log_backend_ble: add level prefix and improve flag settings #77132
Conversation
Hello @dathpo, and thank you very much for your first pull request to the Zephyr project! |
Include the logging level prefix in the log message. Toggle logging output flags depending on the user Kconfig options Signed-off-by: David T. Pocock <[email protected]>
Two cents on this: BLE Logging backend was initially going to be deprecated when the emulator was introduced but there were some comments on the BT UART emulator being experimental and 'less simple' (see: #68076 (comment) and #69881 (comment)). Given the emulator has been released for the LTS and I'm planning to keep maintaining it, perhaps we sould start the deprecation process for the Logging Backend? |
@ubieda just to validate, the uart emulator is NUS right? |
Correct |
I am not familiar with the BT UART emulator so I won't comment directly on it but what I like about the BLE logging backend is:
|
Well, at the time, I also argued that the emulator was more complex, but, it is more flexible. The emulator does provide a more scalable solution compared to the dedicated ble logging backend. I think it makes most sense to make the shell/logging uart backends multi instance (if they arent already) and deprecate the ble log backend in favor of using ble uart emulator + uart backend |
Understood. I was looking for the BT UART emulator (through the For now I am thinking of keeping the BLE logging backend enabled and apply local patches to it like this diff. Otherwise, I think the PR can be closed. |
@dathpo Good news: UART_BT is on NCS 2.7.0 :) Here's how you try it on Logging. Check out: west build -b nrf52840dk/nrf52840 -S nus-console samples/subsys/logging/logger |
Thanks @ubieda, I can see the sample. It turns out I was running the I will close the PR once I run the example if I don't have any related questions, if everyone is ok with that. |
@ubieda I tested the logging functionality with UART_BT on my device and it works well after applying a few tweaks. The points I had to tweak:
|
Not sure about this one: can you capture an issue with repro steps? I'll take a look.
This seems like an oversight on my part: We can change this to be |
Thanks @ubieda, I will close this PR now. |
Two changes:
@vChavezB I am tagging you because you worked on this module.