Hi,
In my project, there are several components & I want to enable macro based logging in all the components. What is the best way to do this?
I have tried enabling it through below method & it works:
At component scope, define it in the component makefile:
CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_DEBUG
But I want to enable the above statement on the basis of Macro just to automate the process. Could you please help me to do this??
Thanks
Ritu
Macro Based Logging
Re: Macro Based Logging
Hi,Ritu21 wrote: ↑Sat Jun 08, 2019 8:06 amHi,
In my project, there are several components & I want to enable macro based logging in all the components. What is the best way to do this?
I have tried enabling it through below method & it works:
At component scope, define it in the component makefile:
CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_DEBUG
But I want to enable the above statement on the basis of Macro just to automate the process. Could you please help me to do this??
Thanks
Ritu
MACRO based logging for individual component or for all components? Please clarify little bit for your requirements.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Macro Based Logging
Hi Ritesh,
I want logging for all the components of my project.
Thanks
Ritu
I want logging for all the components of my project.
Thanks
Ritu
Re: Macro Based Logging
Hi,
I think there is kind of MACRO based Logging has been provided into ESP32 IDF like you can select it from menuconfig using which changes are applied to all components in which logging statements are added.
So, What you want apart from that? will it be not worked into your case?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: Bing [Bot] and 137 guests