Versions in this module Expand all Collapse all v1 v1.1.0 Aug 2, 2021 v1.0.1 Mar 16, 2021 v1.0.0 Mar 14, 2021 Changes in this version + var Must muster + var StderrHandler = StreamHandler(os.Stderr, LogfmtFormat()) + var StdoutHandler = StreamHandler(os.Stdout, LogfmtFormat()) + func Crit(msg string, ctx ...interface{}) + func Debug(msg string, ctx ...interface{}) + func Error(msg string, ctx ...interface{}) + func Info(msg string, ctx ...interface{}) + func Notice(msg string, ctx ...interface{}) + func Warn(msg string, ctx ...interface{}) + type Ctx map[string]interface + type Format interface + Format func(r *Record) []byte + func FormatFunc(f func(*Record) []byte) Format + func JsonFormat() Format + func JsonFormatEx(pretty, lineSeparated bool) Format + func LogfmtFormat() Format + func TerminalFormat() Format + type Handler interface + Log func(r *Record) error + func BufferedHandler(bufSize int, h Handler) Handler + func CallerFileHandler(h Handler) Handler + func CallerFuncHandler(h Handler) Handler + func CallerStackHandler(format string, h Handler) Handler + func ChannelHandler(recs chan<- *Record) Handler + func DiscardHandler() Handler + func FailoverHandler(hs ...Handler) Handler + func FileHandler(path string, fmtr Format) (Handler, error) + func FilterHandler(fn func(r *Record) bool, h Handler) Handler + func FuncHandler(fn func(r *Record) error) Handler + func LazyHandler(h Handler) Handler + func LvlFilterHandler(maxLvl Lvl, h Handler) Handler + func MatchFilterHandler(key string, value interface{}, h Handler) Handler + func MultiHandler(hs ...Handler) Handler + func NetHandler(network, addr string, fmtr Format) (Handler, error) + func StreamHandler(wr io.Writer, fmtr Format) Handler + func SyncHandler(h Handler) Handler + func SyslogHandler(priority syslog.Priority, tag string, fmtr Format) (Handler, error) + func SyslogNetHandler(net, addr string, priority syslog.Priority, tag string, fmtr Format) (Handler, error) + type Lazy struct + Fn interface{} + type Logger interface + Crit func(msg string, ctx ...interface{}) + Debug func(msg string, ctx ...interface{}) + Error func(msg string, ctx ...interface{}) + GetHandler func() Handler + Info func(msg string, ctx ...interface{}) + New func(ctx ...interface{}) Logger + Notice func(msg string, ctx ...interface{}) + SetHandler func(h Handler) + Warn func(msg string, ctx ...interface{}) + func New(ctx ...interface{}) Logger + func Root() Logger + type Lvl int + const LvlCrit + const LvlDebug + const LvlError + const LvlInfo + const LvlNotice + const LvlWarn + func LvlFromString(lvlString string) (Lvl, error) + func (l Lvl) String() string + type Record struct + Call stack.Call + Ctx []interface{} + KeyNames RecordKeyNames + Lvl Lvl + Msg string + Time time.Time + type RecordKeyNames struct + Lvl string + Msg string + Time string