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

Log format complication with esp_log_set_vprintf #33

Open
bshubenok-sigma opened this issue Mar 1, 2023 · 0 comments
Open

Log format complication with esp_log_set_vprintf #33

bshubenok-sigma opened this issue Mar 1, 2023 · 0 comments

Comments

@bshubenok-sigma
Copy link

In our project we're using esp_log_set_vprintf to combine logs from esp-idf and our app and send them to custom logger. Logs from other modules comes as single message, but from wifi module message comes separated in three:

1: "%c (%d) %s:" --> I (6960) wifi:
2: "state: %s -> %s (%x)" --> state: init -> auth (b0)
3: "%s" --> '\n'

As there no way - is it? - to find that this is single message and not three different ones, in final log it looks something like this:

I (6960) wifi:
I (6960) : state: init -> auth (b0)

This does not break anything, but make logs look worse than they could. Is this the issue on my end or was this made intentional for some reason? Can this be fixed in library to look like other components?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant