Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 317 Bytes
package common
import (
logging "github.com/inconshreveable/log15"
)
var log logging.Logger = logging.New("module", "common")
func init() {
SetLogging(DefaultLogLevel, DefaultLogHandler)
}
func SetLogging(level logging.Lvl, handler logging.Handler) {
log.SetHandler(logging.LvlFilterHandler(level, handler))
}
You can’t perform that action at this time.