Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Error(e error)
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) FatalE(msg string, e error)
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) PanicE(msg string, e error)
- func (l *Logger) Panicf(format string, a ...interface{})
- func (l *Logger) PrintE(msg string, e error)
- func (l *Logger) SetDebug(b bool)
- func (l *Logger) SetFlags(flag int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is an extended version of the golang Logger to support structured errors.
func NewLogSet ¶
NewLogSet returns a set of Loggers for commonly used output streams: errors, diagnostics, stdout. The error and stdout streams should generally never be suppressed. diagnostic can be suppressed by setting the output to ioutil.Discard. If an output destination is not needed, one can simply discard it by assigning it to '_'.
func (*Logger) Errorf ¶ added in v1.20.0
Errorf is a convenience function for formatting and printing errors.
Click to show internal directories.
Click to hide internal directories.