siddontang / go-log

a golang log lib supports level and multi handlers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

a golang log lib supports level and multi handlers

License:MIT License


Languages

Language:Go 100.0%