https://github.com/artiomn/tsw-logger
Logging library, based on Baical P7
https://github.com/artiomn/tsw-logger
baicap cpp fast logger logging p7
Last synced: about 1 year ago
JSON representation
Logging library, based on Baical P7
- Host: GitHub
- URL: https://github.com/artiomn/tsw-logger
- Owner: artiomn
- License: mit
- Created: 2020-07-02T13:18:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T10:41:56.000Z (almost 6 years ago)
- Last Synced: 2025-06-13T00:03:33.063Z (about 1 year ago)
- Topics: baicap, cpp, fast, logger, logging, p7
- Language: C++
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```cmake
project(my-project)
add_subdirectory(tsw-logger)
add_executable("${PROJECT_NAME}")
target_link_libraries("${PROJECT_NAME}" tsw-logger)
```
2. In the code:
```cpp
#include
...
LOG(tsw::LogLevel::Debug, "MESSAGE TO LOG!");
```