Since publishing my article Get Started Quickly With Python Logging, I’ve been working on a couple of C++ projects where I’ve found a need for more robust logging solutions than a simple time stamp and message written to a file. Since we also have articles on logging for C# and Java, it made sense to continue the series with an article on C++ logging with Boost.Log. Specifically in this article we are going to:
- Create a simple Visual Studio 2017 project.
- Install the Boost libraries using the NuGet package manager.
- Learn how to configure log output formatting.
- Add custom attributes to our logger.
This article is a big one, so strap in and let’s get started.