Versions in this module Expand all Collapse all v6 v6.0.0 Dec 21, 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 FormatLogfmtInt64(n int64) string + func FormatLogfmtUint64(n uint64) string + func Info(msg string, ctx ...interface{}) + func Output(msg string, lvl Lvl, calldepth int, ctx ...interface{}) + func PrintOrigins(print bool) + func Trace(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 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 + Ctx []interface{} + KeyNames RecordKeyNames + Lvl Lvl + Msg string + Time time.Time + type RecordKeyNames struct + Ctx string + Lvl string + Msg string + Time string + type TerminalStringer interface + TerminalString func() string Other modules containing this package github.com/ubiq/go-ubiq github.com/ubiq/go-ubiq/v3 github.com/ubiq/go-ubiq/v5 github.com/ubiq/go-ubiq/v7