Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/siddontang/Go-log

a golang log lib supports level and multi handlers
https://github.com/siddontang/Go-log

Last synced: 20 days ago
JSON representation

a golang log lib supports level and multi handlers

Awesome Lists containing this project

README

        

## go-log

a golang log lib supports level and multi handlers

## Use

import "github.com/siddontang/go-log/log"

//log with different level
log.Info("hello world")
log.Error("hello world")

//create a logger with specified handler
h := NewStreamHandler(os.Stdout)
l := log.NewDefault(h)
l.Info("hello world")

## go-doc

[![GoDoc](https://godoc.org/github.com/siddontang/go-log?status.png)](https://godoc.org/github.com/siddontang/go-log)