Skip to main content
2 of 2
replaced http://stackoverflow.com/ with https://stackoverflow.com/

The constructor (called in a rather weird way) doesn't do anything, so I don't think that is the issue.

Logging.h:

    /*! 
     * default Constructor
     */
    Logging(){} ;

Logging.cpp:

 Logging Log = Logging();

You should be calling Log.init(whatever) once in your code (as in the example). Are you doing that?

Please post a Minimal, Complete, and Verifiable example.

Without any posted code, we can only guess at what you are doing.


I thought it was bad form to initialize object, or even have any running code, in a .h file. Is this a possibility, and do I have any options to fix this?

That is not done in the library you linked to.

Nick Gammon
  • 38.9k
  • 13
  • 70
  • 126