Documentation ¶
Index ¶
- func Abort(err error)
- func Fatal(v ...interface{})
- func Fatalf(f string, v ...interface{})
- func SetOutput(out io.Writer)
- func Warn(v ...interface{})
- func Warnf(f string, v ...interface{})
- func Writer() *external.Writer
- type Logger
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(f string, v ...interface{})
- func (l *Logger) Output(skip int, s string)
- func (l *Logger) SetFlags(flags int)
- func (l *Logger) SetOutput(out io.Writer)
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(f string, v ...interface{})
- func (l *Logger) Write(data []byte) (int, error)
- func (l *Logger) Writer() *external.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(v ...interface{})
Fatal outputs a log message from the arguments, then exits
func Fatalf ¶
func Fatalf(f string, v ...interface{})
Fatalf outputs a formatted log message from the arguments, then exits
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps a *log.Logger with some configuration and convenience methods
func (*Logger) Fatal ¶
func (l *Logger) Fatal(v ...interface{})
Fatal outputs a log message from the arguments, then exits
func (*Logger) Warn ¶
func (l *Logger) Warn(v ...interface{})
Warn outputs a log message from the arguments
Click to show internal directories.
Click to hide internal directories.