7 Star 25 Fork 13

王大弎 / EasyLog

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

#EasyLog

说明

EasyLog使用很简单只需要将EasyLog.h包含进您的工程中就可以了。

使用事例

EasyLog::GetInstance()->onLogChange = [=](EasyLog::LOG_LEVEL level, std::string logText) -> void
{
    std::cout << level << " " << logText;
};

LOGI("i'm %s", "sollyu");
LOGE("I'm " << "sollyu");
LOG_DEBUG("i'm %s", "sollyu");
EasyLog::GetInstance()->WriteLog(EasyLog::LOG_DEBUG, "i'm %s", "sollyu");

LOG样式

EasyLog

更新

2014年11月26日

彻底更新使用C++11
增加 EASY_LOG_DISABLE_LOG 控制是否输出LOG
更新代码说明

2014年11月24日

使用C++11
增加 onLogChange 回调函数
增加 EASY_LOG_FILE_NAME 宏定义
增加 WINDOWS 下的支持

开源

代码地址:https://git.oschina.net/sollyu/EasyLog.git

博客地址:http://www.sollyu.com/EasyLog

Empty file

About

STL写的一个简单的日志记录 expand collapse
C++
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C++
1
https://gitee.com/sollyu/EasyLog.git
git@gitee.com:sollyu/EasyLog.git
sollyu
EasyLog
EasyLog
master

Search