Skip to content
/ glog Public
forked from google/glog

C++ implementation of the Google logging module

License

Notifications You must be signed in to change notification settings

art1524/glog

 
 

Repository files navigation

This repository contains a C++ implementation of the Google logging
module.  Documentation for the implementation is in doc/.

See INSTALL for (generic) installation instructions for C++: basically
   ./autogen.sh && ./configure && make && make install


channel:https://codeyarns.com/2017/10/26/how-to-install-and-use-glog/
测试环境ubuntu 16.04:
1 install lib:
sudo apt install libgoogle-glog-devy 
2 modify file path: 
GLOG_log_dir=/some/path
3 example:

#include <glog/logging.h>
 
int main(int argc, char* argv[])
{
    google::InitGoogleLogging(argv[0]);
 
    LOG(INFO) << "This is an info  message";
    LOG(WARNING) << "This is a warning message";
    LOG(ERROR) << "This is an error message";
    LOG(FATAL) << "This is a fatal message";
 
    return 0;
}

About

C++ implementation of the Google logging module

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 52.2%
  • Shell 35.7%
  • M4 3.9%
  • CMake 3.3%
  • C 2.7%
  • Makefile 1.6%
  • Python 0.6%