Top 3.4% dependent packages on proxy.golang.org
proxy.golang.org : github.com/golib/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/golib/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: Field duplication: 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. Concurrency safety: Be careful when calling UpdateContext. It is not concurrency safe. Use the With method to create a child logger:
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/golib/zerolog
License: MIT
Latest release: 9 months ago
First release: over 8 years ago
Namespace: github.com/golib
Dependent packages: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago
github.com/leon-gopher/discovery v1.0.1 removed
1 version - Latest release: about 5 years ago - 1 dependent package - 1 dependent repositoriesCheck this option to include packages that no longer depend on this package in their latest version but previously did.