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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start 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