-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP LOG redirect to own function bug. #4346
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
Comments
Two issues:
|
Thank you for your support. I will try it with your suggestions and report back! |
I don't really understand what should i modify. In the
When i do:
I get some loggings to my file:
If i try this way:
I get a compile error:
|
What I have showed you is how to rip out the arduino logging, so there is no ARDUHAL_LOG_FORMAT. You will now need to fill those empty defines with the format that you want, and have them use your new function. |
Hi. I have opened a PR related to this issue: |
With this PR and adding But I still can't get crash logs written to SPIFFS. They're still getting sent to UART. Did anybody manage to make it work? |
Hi @tbertels , I don't think that is possible to do, because wiritng on the SPIFFS it's an heavy work and something you can't do in an interrupt. |
Why can't we add to queue and write in another task? |
I'm still trying. Nothing seems to work |
Hi @martirius @tbertels, I am facing an implementation issue regarding the use of the above PR. When I use However, when I only define DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE, I get the logs printed for each level. Sketch:
Output: [With
Output: [With
Can you please guide me in the right direction as to why this might be happening? Do I need to set some logging define or anything else? Thanks. |
If i set the
esp_log_set_vprintf(redirectToF_System);
than my function is never called when ESP crashes.The text was updated successfully, but these errors were encountered: