Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.