Versions in this module Expand all Collapse all v0 v0.0.2 Apr 15, 2019 Changes in this version + var Levels []Level = []Level + var NoColor = !isatty.IsTerminal(os.Stdout.Fd()) + func Color(value ...Attribute) func(io.Writer, ...interface{}) + func New(w io.Writer, l Level, tag string) *logger + type Attribute int + const BgBlack + const BgBlue + const BgCyan + const BgGreen + const BgHiBlack + const BgHiBlue + const BgHiCyan + const BgHiGreen + const BgHiMagenta + const BgHiRed + const BgHiWhite + const BgHiYellow + const BgMagenta + const BgRed + const BgWhite + const BgYellow + const BlinkRapid + const BlinkSlow + const Bold + const Concealed + const CrossedOut + const Faint + const FgBlack + const FgBlue + const FgCyan + const FgGreen + const FgHiBlack + const FgHiBlue + const FgHiCyan + const FgHiGreen + const FgHiMagenta + const FgHiRed + const FgHiWhite + const FgHiYellow + const FgMagenta + const FgRed + const FgWhite + const FgYellow + const Italic + const Reset + const ReverseVideo + const Underline + type Entry interface + Created func() time.Time + EntryLevel func() Level + SetEntryLevel func(l Level) + type Field struct + Key string + Order int + Value interface{} + type Fielder interface + Fields func() []Field + type FieldsSort []Field + func (f FieldsSort) Len() int + func (f FieldsSort) Less(i, j int) bool + func (f FieldsSort) Swap(i, j int) + type Formatter interface + Format func(Entry) ([]byte, error) + func DefaultNullFormatter() Formatter + func DefaultRawFormatter() Formatter + func MakeTextFormatter(name string) Formatter + type FormatterManager interface + GetFormatter func(string) Formatter + SetFormatter func(string, Formatter) + SwapFormatter func(string) + type Hook interface + Fire func(Entry) error + type HookFunc func(Entry) error + type Hooks interface + AddHook func(Timing, Level, ...Hook) + Fire func(Timing, Level, Entry) error + type Level int + const LDebug + const LError + const LFatal + const LInfo + const LPanic + const LUnrecognized + const LWarn + func StringToLevel(lv string) Level + func (l Level) String() string + func (lv Level) Color() func(io.Writer, ...interface{}) + type Logger interface + type Mutex interface + Lock func() + Unlock func() + type NullFormatter struct + func (n *NullFormatter) Format(e Entry) ([]byte, error) + type RawFormatter struct + func (r *RawFormatter) Format(e Entry) ([]byte, error) + type Reader interface + Read func() (*bytes.Buffer, error) + type StdLogger interface + Fatal func(...interface{}) + Fatalf func(string, ...interface{}) + Fatalln func(...interface{}) + Panic func(...interface{}) + Panicf func(string, ...interface{}) + Panicln func(...interface{}) + Print func(...interface{}) + Printf func(string, ...interface{}) + Println func(...interface{}) + type StrLogger interface + Level func() Level + type TextFormatter struct + Name string + Sort bool + TimestampFormat string + func (t *TextFormatter) Format(e Entry) ([]byte, error) + type Timing int + const POST + const PRE + type TmplBase struct + type XtrLogger interface + At func(Level, ...interface{}) + AtTo func(Level, io.Writer, ...interface{}) + AtTof func(Level, io.Writer, string, ...interface{}) + Atf func(Level, string, ...interface{}) + Log func(Entry)