Top 7.0% forks on proxy.golang.org
proxy.golang.org : github.com/janos/logging
Package logging is async logger library. It is based on idea that log messages are created when client wants to log something, but actual processing is done is designated goroutine. This means that main application will not be blocked while logging is performed with IO operations (writing to file, stdout/stderr, to socket). However, be warned that if your application panics and quits, it is possible that some log messages will be lost, since they might not be processed. Most simple way of using this module is by just importing it and start logging. Default logger (that writes messages to stderr) is created by default. Example: Since this is async logger, last line in main function is needed because program will end before logger has a chance to process message. Shows basic example of using library without any setup. This example show how to create logger with specific name and custom handlers.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/janos/logging
License: BSD-3-Clause
Latest release: about 2 years ago
First release: almost 8 years ago
Namespace: github.com/janos
Stars: 1 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago