DiamondSheep / sylar_proj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A CPP Project

Introduction

Following this video to develop a C++ server framework.

Thanks to Sylar.

How to build

# 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

How to use

1. Logger

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";

Planning

  • Log
  • Config
  • Thread

About


Languages

Language:C++ 96.8%Language:CMake 2.9%Language:Shell 0.2%Language:C 0.1%