[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Logging RSS feed
Forum Index » tcMenu Arduinio library
Author Message

Joined: Mar 3, 2022
Messages: 6
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)?

Joined: Jan 19, 2019
Messages: 686
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.


Joined: Mar 3, 2022
Messages: 6
Thank you! That is the flag what I needed.
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.