Versions in this module Expand all Collapse all v0 v0.1.2 Jul 15, 2021 v0.1.1 Jul 15, 2021 Changes in this version + const BLACK + const BLUE + const CRITICAL + const CYAN + const DEBUG + const ERROR + const GREEN + const INFO + const MAGENTA + const NOTICE + const RED + const WARNING + const WHITE + const YELLOW + var DefaultFormatter Formatter = &defaultFormatter + var DefaultHandler Handler = stderrHandler + var DefaultLevel level = INFO + var DefaultLogger Logger = NewLogger(procName()) + func Critical(format string, args ...interface{}) + func Debug(format string, args ...interface{}) + func Error(format string, args ...interface{}) + func Fatal(format string, args ...interface{}) + func Info(format string, args ...interface{}) + func Notice(format string, args ...interface{}) + func Panic(format string, args ...interface{}) + func Warning(format string, args ...interface{}) + type BaseHandler struct + Formatter Formatter + Level level + func NewBaseHandler() *BaseHandler + func (h *BaseHandler) FilterAndFormat(rec *Record) string + func (h *BaseHandler) SetFormatter(f Formatter) + func (h *BaseHandler) SetLevel(l level) + type CustomFormatter struct + func (f *CustomFormatter) Format(rec *Record) string + type Formatter interface + Format func(*Record) (message string) + type Handler interface + Close func() + Handle func(*Record) + SetFormatter func(Formatter) + SetLevel func(level) + type Logger interface + Critical func(format string, args ...interface{}) + Debug func(format string, args ...interface{}) + Error func(format string, args ...interface{}) + Fatal func(format string, args ...interface{}) + Info func(format string, args ...interface{}) + New func(prefixes ...interface{}) Logger + Notice func(format string, args ...interface{}) + Panic func(format string, args ...interface{}) + SetCallDepth func(int) + SetHandler func(Handler) + SetLevel func(level) + Warning func(format string, args ...interface{}) + func NewCustom(name string, debug bool) Logger + func NewLogger(name string) Logger + type MultiHandler struct + func NewMultiHandler(handlers ...Handler) *MultiHandler + func (b *MultiHandler) Close() + func (b *MultiHandler) Handle(rec *Record) + func (b *MultiHandler) SetFormatter(f Formatter) + func (b *MultiHandler) SetLevel(l level) + type Record struct + Args []interface{} + Filename string + Format string + Level level + Line int + LoggerName string + ProcessID int + ProcessName string + Time time.Time + type SinkHandler struct + func NewSinkHandler(inner Handler, bufSize int) *SinkHandler + func (b *SinkHandler) Close() + func (b *SinkHandler) Handle(rec *Record) + func (b *SinkHandler) SetFormatter(f Formatter) + func (b *SinkHandler) SetLevel(l level) + func (b *SinkHandler) Status() (int, int) + type SyslogHandler struct — darwin/amd64, js/wasm, linux/amd64 + func NewSyslogHandler(tag string) (*SyslogHandler, error) + func (b *SyslogHandler) Close() + func (b *SyslogHandler) Handle(rec *Record) + type WriterHandler struct + Colorize bool + func NewWriterHandler(w io.Writer) *WriterHandler + func (b *WriterHandler) Close() + func (b *WriterHandler) Handle(rec *Record) v0.1.0 Jul 15, 2021