Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Dazl is the product of that effort — an abstraction layer that decouples the logging API from specific Go logging frameworks, providing a pluggable logging backend with support for popular frameworks like zap and zerolog. Libraries can benefit from using dazl to add logging without forcing a dependency on any particular logging framework upon its users. Applications can benefit from pluggable loggers and granular logging configuration/controls. The mission of dazl is to make Go logging more flexible for developers by decoupling libraries and applications from logging frameworks, and more accessible to users by making application loggers configurable via YAML configuration files.
A few years ago, my team moved from Java to Go. Working on Go projects, we encountered a wide variety of logging frameworks with different APIs, configuration, and formatting. We soon found ourselves longing for a logging abstraction layer like Java’s slf4j, which had proven invaluable for use in reusable libraries or configuring and debugging production systems. So, not long after moving to Go, we began working toward replacing what we had lost in slf4j.