Versions in this module Expand all Collapse all v1 v1.1.4 May 17, 2019 Changes in this version type Handler + func SetNetLogHandler(net, addr, tag string, fmtr Format) (Handler, error) v1.1.3 Apr 11, 2019 v1.1.2 Mar 8, 2019 v1.1.1 Feb 19, 2019 v1.1.0 Nov 15, 2018 v1.0.0 Nov 15, 2018 Changes in this version + var Must muster + var StderrHandler = StreamHandler(os.Stderr, LogfmtFormat()) + var StdoutHandler = StreamHandler(os.Stdout, LogfmtFormat()) + func AppendMsg(msg string) string + func Crit(msg string, ctx ...interface{}) + func DEBUG(msg string, ctx ...interface{}) + func Debug(msg string, ctx ...interface{}) + func ERROR(msg string, ctx ...interface{}) + func Error(msg string, ctx ...interface{}) + func INFO(msg string, ctx ...interface{}) + func Info(msg string, ctx ...interface{}) + func InitLog(verbosity uint32) + func Output(msg string, lvl Lvl, calldepth int, ctx ...interface{}) + func PrintOrigins(print bool) + func TRACE(msg string, ctx ...interface{}) + func Trace(msg string, ctx ...interface{}) + func WARN(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 JSONFormatOrderedEx(pretty, lineSeparated bool) Format + func LogfmtFormat() Format + func TerminalFormat(usecolor bool) Format + type GlogHandler struct + func NewGlogHandler(h Handler) *GlogHandler + func (h *GlogHandler) BacktraceAt(location string) error + func (h *GlogHandler) Log(r *Record) error + func (h *GlogHandler) SetHandler(nh Handler) + func (h *GlogHandler) Verbosity(level Lvl) + func (h *GlogHandler) Vmodule(ruleset string) error + 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 RotatingFileHandler(path string, limit uint, formatter 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 + SetHandler func(h Handler) + Trace func(msg string, ctx ...interface{}) + 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 LvlTrace + const LvlWarn + func LvlFromString(lvlString string) (Lvl, error) + func (l Lvl) AlignedString() string + func (l Lvl) String() string + type Record struct + Call stack.Call + Cnt uint + Ctx []interface{} + KeyNames RecordKeyNames + Lvl Lvl + Msg string + Time time.Time + type RecordKeyNames struct + Cnt string + Ctx string + Lvl string + Msg string + Time string + type TerminalStringer interface + TerminalString func() string + type TestHandler struct + func NewTestHandler(verbosity uint32) *TestHandler + func (h *TestHandler) BacktraceAt(location string) error + func (h *TestHandler) Log(r *Record) error + func (h *TestHandler) Verbosity(level Lvl) + func (h *TestHandler) Vmodule(ruleset string) error