Macro Based Logging
Posted: Sat Jun 08, 2019 8:06 am
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
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