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

Latest commit

 

History

History
41 lines (31 loc) · 1.26 KB

README.rst

File metadata and controls

41 lines (31 loc) · 1.26 KB

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