Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(fmtString string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmtString string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(fmtString string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmtString string, args ...interface{})
- func Infoln(args ...interface{})
- func Print(args ...interface{})
- func Printf(fmtString string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(fmtString string, args ...interface{})
- type Fields
- type Logger
- type TerminalLogger
- func (t TerminalLogger) Debug(args ...interface{})
- func (t TerminalLogger) Debugf(fmtString string, args ...interface{})
- func (t TerminalLogger) Error(args ...interface{})
- func (t TerminalLogger) Errorf(fmtString string, args ...interface{})
- func (t TerminalLogger) Errorln(args ...interface{})
- func (t TerminalLogger) Fatal(args ...interface{})
- func (t TerminalLogger) Fatalf(fmtString string, args ...interface{})
- func (t TerminalLogger) Info(args ...interface{})
- func (t TerminalLogger) Infof(fmtString string, args ...interface{})
- func (t TerminalLogger) Infoln(args ...interface{})
- func (t TerminalLogger) Print(args ...interface{})
- func (t TerminalLogger) Printf(fmtString string, args ...interface{})
- func (t TerminalLogger) Warn(args ...interface{})
- func (t TerminalLogger) Warnf(fmtString string, args ...interface{})
- func (t TerminalLogger) WithFields(fields Fields) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(args ...interface{})
func Error ¶
func Error(args ...interface{})
func Errorln ¶
func Errorln(args ...interface{})
func Fatal ¶
func Fatal(args ...interface{})
func Info ¶
func Info(args ...interface{})
func Infoln ¶
func Infoln(args ...interface{})
func Print ¶
func Print(args ...interface{})
func Warn ¶
func Warn(args ...interface{})
Types ¶
type Logger ¶
type Logger interface { Debug(...interface{}) Debugf(string, ...interface{}) Error(...interface{}) Errorf(string, ...interface{}) Errorln(...interface{}) Info(...interface{}) Infof(string, ...interface{}) Infoln(...interface{}) Fatal(...interface{}) Fatalf(string, ...interface{}) Print(...interface{}) Printf(string, ...interface{}) Warn(...interface{}) Warnf(string, ...interface{}) WithFields(Fields) Logger }
Why the interface? We may only want to print to STDOUT and STDERR for now, but it won't neccessarily be that way forever. This interface is intended to provide a "framework" for a variety of different logging types in the future (log to file, log to logstash, etc.) There could be a driver model similar to what is done with OS or machine providers.
type TerminalLogger ¶
type TerminalLogger struct {
// contains filtered or unexported fields
}
func (TerminalLogger) Debug ¶
func (t TerminalLogger) Debug(args ...interface{})
func (TerminalLogger) Debugf ¶
func (t TerminalLogger) Debugf(fmtString string, args ...interface{})
func (TerminalLogger) Error ¶
func (t TerminalLogger) Error(args ...interface{})
func (TerminalLogger) Errorf ¶
func (t TerminalLogger) Errorf(fmtString string, args ...interface{})
func (TerminalLogger) Errorln ¶
func (t TerminalLogger) Errorln(args ...interface{})
func (TerminalLogger) Fatal ¶
func (t TerminalLogger) Fatal(args ...interface{})
func (TerminalLogger) Fatalf ¶
func (t TerminalLogger) Fatalf(fmtString string, args ...interface{})
func (TerminalLogger) Info ¶
func (t TerminalLogger) Info(args ...interface{})
func (TerminalLogger) Infof ¶
func (t TerminalLogger) Infof(fmtString string, args ...interface{})
func (TerminalLogger) Infoln ¶
func (t TerminalLogger) Infoln(args ...interface{})
func (TerminalLogger) Print ¶
func (t TerminalLogger) Print(args ...interface{})
func (TerminalLogger) Printf ¶
func (t TerminalLogger) Printf(fmtString string, args ...interface{})
func (TerminalLogger) Warn ¶
func (t TerminalLogger) Warn(args ...interface{})
func (TerminalLogger) Warnf ¶
func (t TerminalLogger) Warnf(fmtString string, args ...interface{})
func (TerminalLogger) WithFields ¶
func (t TerminalLogger) WithFields(fields Fields) Logger
Click to show internal directories.
Click to hide internal directories.