Page 1 of 1

Turn off Log messages at runtime.

Posted: Wed Aug 23, 2017 11:40 am
by Kazuya91
Hello,

i am new to this Forum and the ESP32 itself. I started programming with the ESP32 and I have a little problem.

When i run my code using "make monitor" to see whats going on, there are too many output/log messages from the ESP with the Tags like "boot", "heap_init", "esp_image" etc. which I dont need right now.

I would like to temporarily turn them off. I read the logging library here http://esp-idf.readthedocs.io/en/latest ... hlight=log

but to be honest I didnt understand.

Can someone help me? Would really appreciate that.

Re: Turn off Log messages at runtime.

Posted: Thu Aug 24, 2017 3:15 am
by ESP_Sprite
What exactly do you fail to understand? In general, you can turn off these messages either by raising the priority where stuff gets logged in 'make menuconfig', or runtime using a esp_log_level_set call.

Re: Turn off Log messages at runtime.

Posted: Thu Aug 24, 2017 12:28 pm
by Kazuya91
Hello,

in my Code i have the line
esp_log_level_set("*", ESP_LOG_NONE);

So in theory, all Outputs from every component should be turned off. But still there are output messages...

Re: Turn off Log messages at runtime.

Posted: Thu Aug 24, 2017 12:51 pm
by ESP_igrr
Could the remaining messages be from the bootloader?
Bootloader log level can be set in menuconfig, in the bootloader settings menu

http://esp-idf.readthedocs.io/en/latest ... ader-level