开源基于c++11日志组件vlog给大家

 

开源基于c++11日志组件vlog给大家,希望大家喜欢。

vlog使用std::cout做为输出引擎,支持多线程,在c++11的基础上研发。

是我工作近10年来不断总结,不断改进的简单、易用、短小、精悍的屏幕日志输出库。

 

因为国内蜗牛一样的访问速度,我基本已经弃用github了,改用网速更快的gitee,虽然它的用户体验做的还不是那么完善。

项目地址:https://gitee.com/vimcpp/vlog

 

# vlog instruction

the simplest and easy using cpp log library
it supports multiple thread log out.

just using like std::cout, for example:

#include "vlog.h"

int main()
{
    vlogi<<"hello world!"<<std::endl;
    return 0;
}

the output maybe look like:

[01-31 23:57:36.039] [info] [main.cpp:11 main()] hello world!


vlog supports all std::cout iomanip format method, because vlog only using std::cout as output engine.
for example:
vlogi<<std::setw(20)<<"hello"<<std::hex<<120<<std::hec<<std::endl;
posted @ 2021-02-01 00:32  igcc  阅读(412)  评论(0)    收藏  举报