Glog
Glog, short for Google logging, is a C++ logging library developed by Google. It provides multi-level, configurable logging for C++ programs and is widely used in both Google code and open-source projects. The library defines logging macros such as LOG(INFO), LOG(WARNING), LOG(ERROR), and LOG(FATAL) for standard messages, as well as VLOG(n) for verbose logging. A FATAL log prints the message and terminates the program, while INFO and WARNING messages are written to logs or standard error depending on configuration.
Initialization is done with google::InitGoogleLogging(argv[0]); and the behavior is controlled at runtime through a set of
Glog is cross-platform and designed for integration into larger C++ projects. It is distributed as open-source
In typical usage, glog complements other Google-style tooling, such as gflags for command-line flags, and is