Google Logging (glog) is a C++98 library that implements application-level logging. The library provides logging APIs based on C++-style streams and various helper macros. glog supports multiple build systems for compiling the project from source, Bazel, CMake, and vcpkg. glog also supports CMake that can be used to build the project on a wide range of platforms. If you don’t have CMake installed already, you can download it for from CMake’s official website. CMake works by generating native makefiles or build projects that can be used in the compiler environment of your choice. You can either build glog with CMake as a standalone project or it can be incorporated into an existing CMake build for another project. glog defines a series of macros that simplify many common logging tasks. You can log messages by severity level, control logging behavior from the command line, log based on conditionals, abort the program when expected conditions are not met, etc.

Features

  • Log messages by severity level
  • Control logging behavior
  • Log based on conditionals
  • Abort the program when expected conditions are not met
  • Introduce your own verbose logging levels
  • Customize the prefix attached to log messages

Project Samples

Project Activity

See All Activity >

Categories

Logging

License

BSD License

Follow Google Logging Library

Google Logging Library Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Google Logging Library!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

C++

Related Categories

C++ Logging Software

Registered

2021-11-04