Documentation
¶
Overview ¶
Package log 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) Error(txt interface{})
- func (s *Simple) Fatal(txt interface{})
- func (s *Simple) GetSimplePrinter() logi.Printer
- func (s *Simple) Info(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) Warn(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 (s *Simple) GetSimplePrinter() logi.Printer
func (*Simple) SetPrinter ¶
func (s *Simple) SetPrinter(f logi.Printer)
Click to show internal directories.
Click to hide internal directories.