Versions in this module Expand all Collapse all v0 v0.34.22 Dec 28, 2022 Changes in this version + func NewSyncWriter(w io.Writer) io.Writer + func NewTMFmtLogger(w io.Writer) kitlog.Logger + type LazyBlockHash struct + func NewLazyBlockHash(block hashable) *LazyBlockHash + func (l *LazyBlockHash) String() string + type LazySprintf struct + func NewLazySprintf(format string, args ...interface{}) *LazySprintf + func (l *LazySprintf) String() string + type Logger interface + Debug func(msg string, keyvals ...interface{}) + Error func(msg string, keyvals ...interface{}) + Info func(msg string, keyvals ...interface{}) + With func(keyvals ...interface{}) Logger + func NewFilter(next Logger, options ...Option) Logger + func NewNopLogger() Logger + func NewTMJSONLogger(w io.Writer) Logger + func NewTMJSONLoggerNoTS(w io.Writer) Logger + func NewTMLogger(w io.Writer) Logger + func NewTMLoggerWithColorFn(w io.Writer, colorFn func(keyvals ...interface{}) term.FgBgColor) Logger + func NewTracingLogger(next Logger) Logger + func TestingLogger() Logger + func TestingLoggerWithColorFn(colorFn func(keyvals ...interface{}) term.FgBgColor) Logger + func TestingLoggerWithOutput(w io.Writer) Logger + type Option func(*filter) + func AllowAll() Option + func AllowDebug() Option + func AllowDebugWith(key interface{}, value interface{}) Option + func AllowError() Option + func AllowErrorWith(key interface{}, value interface{}) Option + func AllowInfo() Option + func AllowInfoWith(key interface{}, value interface{}) Option + func AllowLevel(lvl string) (Option, error) + func AllowNone() Option + func AllowNoneWith(key interface{}, value interface{}) Option