Description
The C++ Logging Toolkit library is a simple to use, low overhead no frills logging
library designed to be used within a multi-threaded context.
Logging Toolkit Library License
Free use of the Logging Toolkit Library is permitted under the guidelines and in
accordance with the
MIT License.
Download
Compatibility
The C++ Logging Toolkit Library implementation is fully compatible with the following C++ compilers:
- GNU Compiler Collection (3.5+)
- Clang/LLVM (1.1+)
- Microsoft Visual Studio C++ Compiler (7.1+)
- Intel® C++ Compiler (8.x+)
- AMD Optimizing C++ Compiler (1.2+)
- Nvidia C++ Compiler (19.x+)
- PGI C++ (10.x+)
- IBM XL C/C++ (9.x+)
- C++ Builder (XE4+)
Dependencies
The Logging Toolkit Library requires the following libraries:
Simple Logging Example
The following quick example demonstrates how the logger is setup and torn down and logs generated.
#include "logtk.hpp"
int main()
{
using namespace logtk;
start_logger("my_log",".");
for (std::size_t i = 0; i < 10; ++i)
{
log("log[%03d] Something...",i);
}
stop_logger();
return 0;
}
|