Skip to content

Repository files navigation

⚠️ REPO OBSOLÈTE — MIGRÉ VERS GITLAB YACAST

Ce repo a été rapatrié vers GitLab Yacast le 2026-05-25.

🔗 Nouvelle référence : https://git.yacast.fr/github_archive/zap-parser

Plus aucun développement n'aura lieu ici. Toute modification doit être faite sur GitLab.


Documentation

zap-parser

A golang parser for Uber's zap logger json output.

Quick Start

import (
    // ...
    "fmt"

	"github.com/Yacast/zap-parser"
)

p, err := zapparser.FromFile("/path/to/logs"))
if err != nil {
	panic(err)
}

p.OnError(func(err error) {
    fmt.Println(err)
})

p.OnEntry(func(e *zapparser.Entry) {
    fmt.Println(e.Message)
})

p.Start()
fmt.Println("Done parsing...")

About

A golang parser for Uber zap's logger json output.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages