dazl – the Go logging framework of frameworks
dazl – the Go logging framework of frameworks
A few years ago, my team moved from Java to Go. Working on Go projects, we came across a variety of logging frameworks with different APIs outputting messages in different formats. Go seemed to be lacking a logging abstraction like slf4j, which has been so invaluable to the Java ecosystem. Without that abstraction layer, the APIs for configuring logging vary wildly across projects, and libraries must either add a dependency on one of those frameworks or simply avoid structured logging altogether. Dazl is a logging abstraction layer that decouples the logging API from specific Go logging libraries, providing a pluggable logging backend with support for popular frameworks like zap and zerolog. Add logging to your Go library without forcing a particular logging dependency on your users. Use dazl to make logging configurable (via YAML) in your Go application. Dazl is designed to make logging easier for Go developers and their users by providing a unified interface to establish consistency across Go libraries and logging frameworks. Dazl was originally developed in open source at the Open Networking Foundation but remained somewhat hidden away within the subdirectories of an obscure repo. My team has since moved to Intel where this project is still in use in today. I’m sharing it now in the hopes Go developers will get the same value from it we have.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Logchain – Show HN: Logchain – A remote logging framework
Nginx logging to ZeroMQ
Astroflow – An unified logging framework for all languages
FastMCP – MCP framework with image, logging, error handling and SSE
Centralized Logging Tool
iOS Logging framework for high usage Apps
Blindsight, a Scala Logging API
Django Easy Logging
Protobuf Based Schema Centric Logging Framework
dlog – A delegating logging library for Golang