Unable to post Logger entries from inside system event handlers?

The Logger is providing some great feedback in debugging my application, but I am running into an odd issue:

I’m using SerialLogHandler logHandler(LOG_LEVEL_ALL); with the Logger class to trace program flow, but mylog.info("Button event fired!"); does not seem to work from inside an event handler registered with System.on(..

Serial.println("Button event fired!"); still works fine from within the event handler, but the log NEVER produces output. It doesn’t seem to be suppressed anywhere else.

I don’t have a ton of time to make a test example to submit a bug report right this second, but I wanted to put a feeler out and see if anyone has noticed this before. I’ll try to get around to it later if it hasn’t been reported.

Let me ping someone that might be able to help, @rickkas7 or @ParticleD are you able to assist?

For future reference, the Github issue to track this is:

2 Likes