ESP32 How to turn off automatic log of system output

Devil月哥
Posts: 15
Joined: Sat Nov 25, 2017 3:43 am

ESP32 How to turn off automatic log of system output

Postby Devil月哥 » Wed Jan 17, 2018 2:01 pm

ESP32 How to turn off automatic log of system output
The system defaults to output a lot of logs, you can set the shutdown, only output my own definition of the log.

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

Re: ESP32 How to turn off automatic log of system output

Postby ESP_igrr » Wed Jan 17, 2018 2:55 pm

1. Disabling ROM bootloader output: pull down GPIO15.

2. Disabling 2nd stage bootloader output: make menuconfig, go to "Bootloader config" and set "Bootloader log verbosity" to "No output"

3. Application: make menuconfig, go to "Component config", "Log output", set "Default log verbosity" to "No output".

This should remove all log output.

Devil月哥
Posts: 15
Joined: Sat Nov 25, 2017 3:43 am

Re: ESP32 How to turn off automatic log of system output

Postby Devil月哥 » Thu Jan 18, 2018 5:46 am

Thank you. It's trying to set up

User avatar
urbanze
Posts: 248
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ESP32 How to turn off automatic log of system output

Postby urbanze » Thu Aug 02, 2018 4:44 pm

ESP_igrr wrote: 2. Disabling 2nd stage bootloader output: make menuconfig, go to "Bootloader config" and set "Bootloader log verbosity" to "No output"
How to disable ONLY 2nd stage output? Setting "no output" in menuconfig disable all output, including my code. I tried to set new level (esp_log_level_set("*", ESP_LOG_INFO);) in start of code, but obvious, this doesnt work (spected).


Edit:
Disabling logput in menuconfig and use "#define LOG_LOCAL_LEVEL ESP_LOG_INFO" worked.

2nd stage boot output = OFF
my code output = ON

Harvey
Posts: 1
Joined: Mon Jun 24, 2019 9:34 am

Re: ESP32 How to turn off automatic log of system output

Postby Harvey » Mon Jun 24, 2019 9:38 am

Hi:
How to close the log(printf/esp_log) in "main.c". I want to change the UART GPIO1 and GPIO3 to IIC SCL and SDA, so uart must be turned off to avoid conflicts.

请问如何在主程序关闭log,不去改动硬件,只做软件修改。需求是需要把UART的GPIO1和GPIO3改为IIC口,所以必须关闭uart,以免冲突。

Who is online

Users browsing this forum: No registered users and 14 guests