Logy v0.1is out!

Configurable logger for Go

Fast, contextual logging for Go applications

Logy helps Go applications produce readable console logs and structured production output with named loggers, context fields, flexible handlers, JSON formatting, and clear error traces.

Terminal
$go run .
2026-08-21 14:35:10INFOgo.codnect.io/tag:server started
2026-08-21 14:35:11WARNgo.codnect.io/tag:retry scheduled
2026-08-21 14:35:12ERRORgo.codnect.io/tag:request failed
2026-08-21 14:35:13DEBUGgo.codnect.io/tag:handler loaded
2026-08-21 14:35:14TRACEgo.codnect.io/tag:context attached
$

Why Logy

Logging tools that stay close to application code.

Named loggers

Create package-based or explicit loggers and keep output tied to the component that produced it.

Context fields

Attach trace IDs, span IDs, request metadata, and other values to logs through context helpers.

Flexible output

Use pattern-based console logs, JSON output, files, syslog, or custom handlers when the runtime needs more.

Fast paths

Keep common logging calls lightweight while still supporting formatted messages and error stack traces.

Configuration

Switch formats without changing call sites.

Configure console output, JSON formatting, handlers, levels, and contextual fields from code or YAML.

config.go
err := logy.LoadConfig(&logy.Config{    Console: &logy.ConsoleConfig{        Enabled: true,        Json: &logy.JsonConfig{            Enabled: true,        },    },})