glog VS gflags

Compare glog vs gflags and see what are their differences.

glog

C++ implementation of the Google logging module (by google)

gflags

The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used. Online documentation available at: (by gflags)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
glog gflags
5 4
6,765 2,786
1.1% 1.0%
9.0 0.0
15 days ago 4 months ago
C++ C++
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

glog

Posts with mentions or reviews of glog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-13.

gflags

Posts with mentions or reviews of gflags. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-21.

What are some alternatives?

When comparing glog and gflags you can also consider the following projects:

spdlog - Fast C++ logging library.

G3log - G3log is an asynchronous, "crash safe", logger that is easy to use with default logging sinks or you can add your own. G3log is made with plain C++14 (C++11 support up to release 1.3.2) with no external libraries (except gtest used for unit tests). G3log is made to be cross-platform, currently running on OSX, Windows and several Linux distros. See Readme below for details of usage.

Boost.Log - Boost Logging library

Boost.Program_options - Boost.org program_options module

log4cplus - log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.

jarro2783/cxxopts - Lightweight C++ command line option parser

easyloggingpp - C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.

plog - Portable, simple and extensible C++ logging library

CLI11 - CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.

args - A simple header-only C++ argument parser library. Supposed to be flexible and powerful, and attempts to be compatible with the functionality of the Python standard argparse library (though not necessarily the API).

loguru - A lightweight C++ logging library

quill - Asynchronous Low Latency C++ Logging Library