Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2018 Changes in this version + var CliFormat = "%{color}%{message}%{color:reset}" + var DefaultFormat = "%{color}%{time:15:04:05.000}: %{module} %{level} %{color:reset} %{message}" + var DefaultModuleLevel = ModuleLevel + func FatalPanic(log Logger) + func Panic(log Logger) + func SetUpBasicLogging(w io.Writer, format string, levels ...ModuleLevel) + func SetUpLogging(config *util.Config) error + type BufWritter struct + func (w BufWritter) Dump(dst io.Writer) + func (w BufWritter) Reset() + func (w BufWritter) Write(p []byte) (n int, err error) + type Level int + const CRITICAL + const DEBUG + const ERROR + const INFO + const NOTICE + const WARNING + type Logger interface + Critical func(format string, args ...interface{}) + Debug func(format string, args ...interface{}) + Error func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Info func(format string, args ...interface{}) + Notice func(format string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(format string, args ...interface{}) + Warning func(format string, args ...interface{}) + func NewLogger() Logger + func NewLoggerForModule(module string) Logger + type ModuleLevel struct + Level Level + Module string