Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardoarchive/go-logger
Thin wrapper around zap with convenience methods for logging to standard output and error streams
https://github.com/ricardoarchive/go-logger
golang logging
Last synced: 28 days ago
JSON representation
Thin wrapper around zap with convenience methods for logging to standard output and error streams
- Host: GitHub
- URL: https://github.com/ricardoarchive/go-logger
- Owner: ricardoarchive
- License: mit
- Created: 2017-08-11T09:37:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T09:36:40.000Z (over 7 years ago)
- Last Synced: 2023-08-12T02:47:22.634Z (over 1 year ago)
- Topics: golang, logging
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GO-LOGGER
go-logger provides a simple way to log messages through stderr and stdout with a minimal set of configuration.
## Quick start
```
// initialization (optional)
logger.InitLogger(true)// use of logger
logger.Error("My error message")logger.Info("My info message")
logger.Debug("My debug message") // only if verbose is true
```*Error() publish to stderr, Info() and Debug() publish to stdout*
## Features
- Simple logger to use
- Publish to stderr and stdout messages## License
go-logger is licensed under the MIT license. (http://opensource.org/licenses/MIT)## Contributing
Pull requests are the way to help us here. We will be really gratefull.