Page 1 of 1

Logging from another task/thread

Posted: Mon Feb 22, 2021 1:14 am
by cmumford
Hi:

I just noticed that all of my logging (i.e. ESP_LOGE, etc.) from all tasks after the first task do not show up in the monitor. I figured this would be a FAQ, but I can't find any mention of this. Is this support?

Re: Logging from another task/thread

Posted: Mon Feb 22, 2021 2:16 am
by ESP_Sprite
That is odd... you should be able to log from any task. Do you have some code that shows the issue? Also, what esp-idf version are you using?

Re: Logging from another task/thread

Posted: Tue Feb 23, 2021 1:23 am
by cmumford
I'm on ESP-IDF master/2bfdd036b2dbd07004c8e4f2ffc87c728819b737. I'm doing USB host stuff, so needed new stuff in 4.3.

My code is at https://github.com/BigMumf/display-keyboard. Looking more closely I'm not sure it's dropping logging from other tasks, but it is definitely dropping log messages - of all log levels.

My default log verbosity is INFO and my logging is going to UART0 and not CDC.