标签:
1 引用头文件 加载库
#include <glog/include/logging.h> #pragma comment(lib,"libglog.lib")
2 初始化
FLAGS_log_dir = "./Log"; google::InitGoogleLogging("FQManageServer"); google::SetLogDestination(google::GLOG_INFO,"./log/FQManageServer"); FLAGS_logbufsecs = 0; //日志实时输出 FLAGS_max_log_size=10; //最大日志文件大小 10M
3 使用
LOG(INFO) << "GLOG Init!";
4 库文件 头文件下载地址
http://download.csdn.net/detail/a991556/9558716
http://www.cnblogs.com/a9999/p/5614761.html
标签:
原文地址:http://www.cnblogs.com/findumars/p/5615240.html