A drop-in replacement for the Go standard library logger package.
- Logging levels
- Colored text output
- Multiple simultaneous output streams
- Customizable output formatting using templates
- Hierarchical output formatting
- Suppress specific output
Here is a simple example for using go-logs to hide debug output when not needed.
import "github.com/demizer/go-logs/src/logs"
logs.Println("This message will be sent to stdout.")
logs.Debugln("This message will only be shown on stderr if the logging level is DEBUG!")