glog

C++ logging library with application-level logging support

brewmacoslinux
Try with needOr install directly
Source

About

Application-level logging library

Commands

glog

Examples

Include glog in C++ project for structured logging$ #include <glog/logging.h> int main() { google::InitGoogleLogging(argv[0]); LOG(INFO) << "Info message"; return 0; }
Set log level via environment variable$ GLOG_minloglevel=1 ./my_program
Write logs to specific directory$ GLOG_log_dir=/var/log ./my_program