Setup building with glog library

Summary:
To use the library in code, do the following.

  * Include glog, `include "glog/logging.h"`
  * Initialize logging from a main entry point,
    `google::InitGoogleLogging(argv[0]);`
  * Log anywhere from your code, `LOG(INFO) << "Hello world from glog";`

For advanced use, refer to glog's documentation.

Reviewers: mislav.bradac, florijan, dgleich, buda

Reviewed By: mislav.bradac, buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D492
This commit is contained in:
Teon Banek
2017-06-16 12:04:26 +02:00
parent 492b4919f1
commit bed62c4f8b
3 changed files with 23 additions and 2 deletions

View File

@@ -47,6 +47,13 @@ cd googletest
git checkout ${googletest_tag}
cd ..
# google logging
git clone https://github.com/google/glog.git
glog_tag="a6a166db069520dbbd653c97c2e5b12e08a8bb26" # v0.3.5
cd glog
git checkout ${glog_tag}
cd ..
# lcov-to-coberatura-xml
git clone https://github.com/eriwen/lcov-to-cobertura-xml.git
lcov_to_xml_tag="59584761cb5da4687693faec05bf3e2b74e9dde9" # Dec 6, 2016