Top 3.5% dependent repos on proxy.golang.org
proxy.golang.org : github.com/pickjunk/zerolog
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/pickjunk/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. In this case, many consumers will take the last value, but this is not guaranteed; check yours if in doubt.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/pickjunk/zerolog
License: MIT
Latest release: over 5 years ago
First release: about 8 years ago
Namespace: github.com/pickjunk
Dependent packages: 1
Dependent repositories: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago