Logging library, based on Baical P7.
Header-only:
- Boost::current_function.
- Boost::Exception.
Baical P7 will be loaded during build.
$ git clone --recurse-submodules -j8 https://github.com/artiomn/tsw-logger.git
$ ./build.sh
- In CMakeLists.txt of your project:
project(my-project)
add_subdirectory(tsw-logger)
add_executable("${PROJECT_NAME}")
target_link_libraries("${PROJECT_NAME}" tsw-logger)
- In the code:
#include <tsw-logger/logger.h>
...
LOG(tsw::LogLevel::Debug, "MESSAGE TO LOG!");