A small and simple cross-platform logging toolset.
- Easy logging
- Cross-platform for Windows and Linux
Please note: currently the library is made with C++17 in mind, as that is the main C++ version I'm using for my new projects right now.
-
Go to the releases tab and download the latest version of the library. It should only be a single file called logtools.h
-
Include
logtools.hin your project -
At the start of your program, call
Logger::Init();to initialize the logger. -
Then you can use the logging functions that the Logger provides:
LogTrace(msg)orLogTrace(format, arguments)LogDebug(msg)orLogDebug(format, arguments)LogInfo(msg)orLogInfo(format, arguments)LogWarning(msg)orLogWarning(format, arguments)LogError(msg)orLogError(format, arguments)
For a full demo of what the library can do, please see the main.cpp (logtools/src/main.cpp) file in the repository.
If you have any troubles setting up or using this library, please create an issue here