Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2021 Changes in this version + var DefaultLevel = LevelInfo + var DefaultLog = NewLog() + var DefaultSize = 1000 + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Name(name string) + func SetLevel(l Level) + func SetPrefix(p string) + func Trace(v ...interface{}) + func Tracef(format string, v ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + func WithLevel(l Level, v ...interface{}) + func WithLevelf(l Level, format string, v ...interface{}) + type Level int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelTrace + const LevelWarn + func GetLevel() Level + type Log interface + Read func(...ReadOption) []Record + Stream func(chan bool) <-chan Record + Write func(Record) + func NewLog(opts ...Option) Log + type Option func(*Options) + func Size(s int) Option + type Options struct + Size int + func DefaultOptions() Options + type ReadOption func(*ReadOptions) + func Count(c int) ReadOption + func Since(s time.Time) ReadOption + func Stream(s bool) ReadOption + type ReadOptions struct + Count int + Since time.Time + Stream bool + type Record struct + Metadata map[string]string + Timestamp time.Time + Value interface{}