proxy.golang.org : github.com/rs/zeroLog : v1.17.1
Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/rs/zero%[email protected]
Published:
Indexed:
Related tag:
v1.17.1
- github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
- github.com/pkg/errors v0.8.1
- github.com/rs/xid v1.2.1
- github.com/zenazn/goji v0.9.0
- golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74