charmbracelet/log

A minimal, colorful Go logging library 🪵

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 39 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 20th, 2026
Created on December 2nd, 2022
Open Issues & Pull Requests: 41 (+0)
GitHub issues: Enabled
Number of forks: 102
Total Stargazers: 3,394 (+0)
Total Subscribers: 8 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 20
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 614 days
Stale 30+ days: 19
Stale 90+ days: 17

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (8)
  • bug (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Log is a minimal, colorful Go logging library that provides structured human-readable output with a small API surface.

The library solves the problem of verbose or unstyled logging in Go by offering leveled structured logging with customizable colorful formatting. It uses Lip Gloss to style and colorize output, distinguishing itself from the standard library's log package through human-readable formatting and batteries-included features. The tool supports multiple output formats including text, JSON, and Logfmt, and can be customized with different timestamp formats. It provides helper functions that skip caller frames appropriately and integrates with Go's context package for storing and retrieving loggers.

Developers should choose this library if they want colorful, human-readable logs without the overhead of heavier logging frameworks. It suits projects that prioritize developer experience and readable terminal output, particularly command-line tools and services where log visibility matters. The library includes a global package-wise logger with timestamps enabled and info-level logging by default, making it immediately usable without configuration. It also provides a Slog handler and standard log adapter for compatibility with existing Go logging patterns.

The project maintains active development with regular updates and comprehensive test coverage. The codebase demonstrates attention to code quality through continuous integration checks and documentation via Go package documentation.