glog
bazel
example
glog/bazel/example/main.cc
Go to the documentation of this file.
1
#include <gflags/gflags.h>
2
#include <glog/logging.h>
3
#include <glog/stl_logging.h>
4
5
int
main
(
int
argc,
char
* argv[]) {
6
// Initialize Google's logging library.
7
google::InitGoogleLogging
(argv[0]);
8
9
// Optional: parse command line flags
10
gflags::ParseCommandLineFlags
(&argc, &argv,
true
);
11
12
LOG
(
INFO
) <<
"Hello, world!"
;
13
14
// glog/stl_logging.h allows logging STL containers.
15
std::vector<int>
x
;
16
x
.push_back(1);
17
x
.push_back(2);
18
x
.push_back(3);
19
LOG
(
INFO
) <<
"ABC, it's easy as "
<<
x
;
20
21
return
0;
22
}
main
int main(int argc, char *argv[])
Definition:
glog/bazel/example/main.cc:5
INFO
const int INFO
Definition:
log_severity.h:59
x
GLint GLenum GLint x
Definition:
glcorearb.h:2834
LOG
#define LOG(x)
Definition:
sdk/include/aditof/log.h:72
benchmark::internal::ParseCommandLineFlags
void ParseCommandLineFlags(int *argc, char **argv)
Definition:
benchmark.cc:655
google::InitGoogleLogging
static void InitGoogleLogging(char *val)
Definition:
sdk/include/aditof/log.h:63
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:55