Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Logging

Author: loczi1
03/03/2022 08:07:49
Hi Dave and All!
I couldn't find any information about the logging.
I use the same code on two hardvare (Esp8266 & Esp32).
I see event based logging on one device, log like:

610:EEPROM Key NOT found 64222
Setup done
677:root has changed
677:Recalculate display order, safe=0
677:Add title
677:Add manual id at row5 1
677:Add manual id at row10 2
677:Add manual id at row20 3
680:Add manual id at row3 4
682:Add manual id at row29 5
685:Set items in menu (size, offs) 6 0
688:activate item 0
690:Change active (V, ID) 0 0
693:Complete redraw
696:draw item (pos,id,chg)0 0 1


But this log is not showed on the other device.
Question: How can I set the lib to log? What levels are there (like verbose, error, etc)?

Author: davetcc
03/03/2022 12:02:58
There are no logging levels, but the logging is controlled by a build flag: IO_LOGGING_DEBUG

For example, in platformIO or other build systems you would define that build flag EG: build_flags = -DIO_LOGGING_DEBUG

For Adruino, standard Arduino does not support build flags, you'd edit IoLogging.h in IoAbstraction library, see the comment near the top that shows how to enable it in this case.


Author: loczi1
03/03/2022 20:22:05
Thank you! That is the flag what I needed.
smilie




Register / Login  |  Desktop view  |  Jump to top of page