Turn off Log messages at runtime.

Kazuya91
Posts: 27
Joined: Wed Aug 23, 2017 11:33 am

Turn off Log messages at runtime.

Postby Kazuya91 » Wed Aug 23, 2017 11:40 am

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.

ESP_Sprite
Posts: 9723
Joined: Thu Nov 26, 2015 4:08 am

Re: Turn off Log messages at runtime.

Postby ESP_Sprite » Thu Aug 24, 2017 3:15 am

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.

Kazuya91
Posts: 27
Joined: Wed Aug 23, 2017 11:33 am

Re: Turn off Log messages at runtime.

Postby Kazuya91 » Thu Aug 24, 2017 12:28 pm

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...

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Turn off Log messages at runtime.

Postby ESP_igrr » Thu Aug 24, 2017 12:51 pm

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

Who is online

Users browsing this forum: No registered users and 365 guests