Skip to content

artiomn/tsw-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSW Logger

Logging library, based on Baical P7.

Requirements

Header-only:

  • Boost::current_function.
  • Boost::Exception.

Baical P7 will be loaded during build.

Build

$ git clone --recurse-submodules -j8 https://github.com/artiomn/tsw-logger.git
$ ./build.sh

Using

  1. In CMakeLists.txt of your project:
project(my-project)

add_subdirectory(tsw-logger)
add_executable("${PROJECT_NAME}")
target_link_libraries("${PROJECT_NAME}" tsw-logger)
  1. In the code:
#include <tsw-logger/logger.h>

...

LOG(tsw::LogLevel::Debug, "MESSAGE TO LOG!");