Documentation ¶
Overview ¶
Package simple is an implementation of the logi.Logger interface that prints log entries to stdout with level code, compact since startup time.Duration and appends the code location of the call to the logger at the end of the log text.
Index ¶
- type Simple
- func (s *Simple) Check(err error) (errs bool)
- func (s *Simple) Debug(txt ...interface{})
- func (s *Simple) Debugc(fn func() string)
- func (s *Simple) Debugf(format string, txt ...interface{})
- func (s *Simple) Debugs(txt interface{})
- func (s *Simple) Error(txt ...interface{})
- func (s *Simple) Errorc(fn func() string)
- func (s *Simple) Errorf(format string, txt ...interface{})
- func (s *Simple) Errors(txt interface{})
- func (s *Simple) Fatal(txt ...interface{})
- func (s *Simple) Fatalc(fn func() string)
- func (s *Simple) Fatalf(format string, txt ...interface{})
- func (s *Simple) GetSimplePrinter() logi.Printer
- func (s *Simple) Info(txt ...interface{})
- func (s *Simple) Infoc(fn func() string)
- func (s *Simple) Infof(format string, txt ...interface{})
- func (s *Simple) Infos(txt interface{})
- func (s *Simple) SetLevel(level logi.Level)
- func (s *Simple) SetPrinter(f logi.Printer)
- func (s *Simple) Trace(txt ...interface{})
- func (s *Simple) Tracec(fn func() string)
- func (s *Simple) Tracef(format string, txt ...interface{})
- func (s *Simple) Traces(txt interface{})
- func (s *Simple) Warn(txt ...interface{})
- func (s *Simple) Warnc(fn func() string)
- func (s *Simple) Warnf(format string, txt ...interface{})
- func (s *Simple) Warns(txt interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct { Printer logi.Printer Level logi.Level Panic bool // contains filtered or unexported fields }
func NewSimpleLogger ¶
func NewSimpleLogger() (s *Simple)
func (*Simple) GetSimplePrinter ¶
func (*Simple) SetPrinter ¶
Click to show internal directories.
Click to hide internal directories.