Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

demizer/go-logs

Repository files navigation

go-logs - Enhanced logging for Go

A drop-in replacement for the Go standard library logger package.

screenshot-2015-05-13.png

Features

  • Logging levels
  • Colored text output
  • Multiple simultaneous output streams
  • Customizable output formatting using templates
  • Hierarchical output formatting
  • Suppress specific output

Example

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!")

About

A enhanced logging library for Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages