explaingit

google/glog

7,365C++Audience · developerComplexity · 2/5Setup · moderate

TLDR

glog was Google's C++ logging library, but it is no longer maintained and will be archived on 2025-06-30, the project recommends migrating to ng-log (a compatible community fork) or Abseil Logging (Google's actively maintained alternative).

Mindmap

mindmap
  root((glog))
    Status
      No longer maintained
      Archived 2025-06-30
    What it was
      C++ logging library
      Severity filtering
      File log output
    Alternatives
      ng-log community fork
      Abseil Logging
    Migration
      Compatible API
      Migration guide
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Migrate an existing C++ codebase from glog to ng-log using its compatible API and official migration instructions.

USE CASE 2

Replace glog in a project with Abseil Logging to stay on a Google-backed, actively maintained logging library.

Tech stack

C++

Getting it running

Difficulty · moderate Time to first run · 30min

This project is archived and no longer maintained, migrate to ng-log or Abseil Logging before the 2025-06-30 archive date.

In plain English

Google Logging Library (glog) was a C++ library for recording log messages inside applications. It provided a stream-based API and helper macros that let developers write log statements that could be filtered by severity, written to files, and handled in various other ways at runtime. The project is no longer maintained. Google announced it will be archived on 2025-06-30. The README points to two alternatives: ng-log, a community-maintained fork with a compatible API and migration instructions, and Abseil Logging, a logging library from Google that is actively supported. Developers using glog in existing projects are encouraged to migrate to one of these.

Copy-paste prompts

Prompt 1
How do I migrate a C++ project from glog to ng-log while keeping the same LOG() and DCHECK() macros?
Prompt 2
Show me how to add Abseil Logging to a C++ CMake project as a drop-in replacement for glog.
Prompt 3
What are the key API or behaviour differences between glog and ng-log that I need to update during migration?
Open on GitHub → Explain another repo

← google on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.