Following this video to develop a C++ server framework.
Thanks to Sylar.
# install required libs
sudo apt update
sudo apt install libboost-dev libyaml-cpp-dev
# load code from github
git clone https://github.com/DiamondSheep/sylar_proj.git
cd sylar_proj
# build and run test (you can modify CMakeLists.txt for testing different module)
sh run.sh
Logger is a basic component of this project to print information in different level.
// Initialize (or customized)
sylar::Logger g_logger = SYLAR_LOG_ROOT();
// Print
SYLAR_LOG_INFO(g_logger) << "log information";
- Log
- Config
- Thread