Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
func (*DefaultLogger) LineWriter ¶
func (l *DefaultLogger) LineWriter(prefix string) io.Writer
func (*DefaultLogger) Print ¶
func (l *DefaultLogger) Print(v ...interface{})
func (*DefaultLogger) Printf ¶
func (l *DefaultLogger) Printf(format string, v ...interface{})
type Logger ¶
type Logger interface { io.Writer Print(v ...interface{}) Printf(format string, v ...interface{}) LineWriter(prefix string) io.Writer }
var ( Trace Logger = NewDiscard() //nolint:revive Debug Logger = NewDiscard() //nolint:revive Info Logger = &DefaultLogger{log.New(os.Stderr, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile)} Warn Logger = &DefaultLogger{log.New(os.Stderr, "WARN: ", log.Ldate|log.Ltime|log.Lshortfile)} )
func NewDiscard ¶
func NewDiscard() Logger
Click to show internal directories.
Click to hide internal directories.