merge(3p/glog): Vendor glog from commit 'afe04691'
This commit is contained in:
commit
6941048b7e
133 changed files with 23455 additions and 0 deletions
22
third_party/glog/bazel/example/main.cc
vendored
Normal file
22
third_party/glog/bazel/example/main.cc
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include <gflags/gflags.h>
|
||||
#include <glog/logging.h>
|
||||
#include <glog/stl_logging.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
// Initialize Google's logging library.
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
|
||||
// Optional: parse command line flags
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
LOG(INFO) << "Hello, world!";
|
||||
|
||||
// glog/stl_logging.h allows logging STL containers.
|
||||
std::vector<int> x;
|
||||
x.push_back(1);
|
||||
x.push_back(2);
|
||||
x.push_back(3);
|
||||
LOG(INFO) << "ABC, it's easy as " << x;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue