A highly customizable structured logger for command-line tools with a zerolog-inspired fluent API, terminal-aware colours, hyperlinks, animations, and custom log levels.
go get github.com/gechr/clogpackage main
import (
"fmt"
"github.com/gechr/clog"
)
func main() {
clog.Info().Str("port", "8080").Msg("Server started")
clog.Warn().Str("path", "/old").Msg("Deprecated endpoint")
err := fmt.Errorf("connection refused")
clog.Error().Err(err).Msg("Connection failed")
}Output:
INF ℹ️ Server started port=8080
WRN ⚠️ Deprecated endpoint path=/old
ERR ❌ Connection failed error=connection refused
Full documentation is available at gechr.github.io/clog.
