make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code, why

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code, why

Postby wziy520 » Fri Dec 02, 2016 9:27 am

make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code, why?how to make the Macro define works?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code,

Postby kolban » Fri Dec 02, 2016 4:27 pm

Are you including the header called "sdkconfig.h" in your source files?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

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

Re: make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code,

Postby ESP_igrr » Fri Dec 02, 2016 4:54 pm

What debug level have you set in menuconfig?

CONFIG_LOG_DEFAULT_LEVEL_INFO macro will only be defined if the debug level is set to "Info".

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

Re: make menuconfig change log level, But looks like the CONFIG_LOG_DEFAULT_LEVEL_INFO macro not using in C source code,

Postby wziy520 » Mon Dec 05, 2016 7:58 am

yes, include "sdkconfig.h" file.

but I can't find "CONFIG_LOG_DEFAULT_LEVEL_INFO" in other part of source code. how i can get where it works.


Who is online

Users browsing this forum: No registered users and 80 guests