Logger is a small, straightforward library to enhance your Go applications with powerful logging features.
Logger is a library providing a simple interface to add feature rich and customizable logging support to your application.
Logger is composed of modular Handlers, each of which implement a different mechanism by which your application can output logging information.
Currently supported handlers include:
- Standard Out / Standard Error
- File Logging
Logger also includes a number of modular Formatters, which transform your log messages into standards-compliant formats before they are logged.
Currently supported formatters include:
- Logger Structured Log Format
- JSON
- Graylog Extended Format
- Kubernetes Structured Log Format
Using this package requires a working Go environment. See the install instructions for Go.
...
import (
"github.com/jgrancell/logger"
)
...