Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement spdlog and Logging Service #82
PR Resolves #12
It was not defined if this was to cover file logging but that should be able to be added pretty easily if needed (maybe in separate PR).
Implemented Basic Logging Logging is initialized by default, either at TRACE for debug builds or INFO for non-debug builds. This is set with CMake's NDEBUG flag - all we need to do is set the build type with -DCMAKE_BUILD_TYPE=...
Bilbo Loggins - Chapter 1 Did what the title says, and switched NovelAudioService to find the existing logger and use it instead of std::cout.
Removed dependencies where nothing is being logged - namely NovelRunner changes previously done. Switched to singleton instance of Logging so that everything accesses the same logger.
Removed singleton instance - spdlog already uses them, and I was just spraying the heap with more, causing corruption. Now launches 10 out of 10 times!
Since spdlog is singleton-based, we utilize that to our advantage here, so we're not really creating a brand new logger every time. Added constants to help separate, and added Asynchronous logging. Also finished editing current ERROR/INFO messages to match new format.