Documentation ¶
Index ¶
- func Debug(arg interface{})
- func Debugf(format string, args ...interface{})
- func Error(arg interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(arg interface{})
- func Fatalf(format string, args ...interface{})
- func Info(arg interface{})
- func Infof(format string, args ...interface{})
- func Warn(arg interface{})
- func Warnf(format string, args ...interface{})
- type Log
- func (l *Log) Debug(arg interface{})
- func (l *Log) Debugf(format string, args ...interface{})
- func (l *Log) Error(arg interface{})
- func (l *Log) Errorf(format string, args ...interface{})
- func (l *Log) Fatal(arg interface{})
- func (l *Log) Fatalf(format string, args ...interface{})
- func (l *Log) Info(arg interface{})
- func (l *Log) Infof(format string, args ...interface{})
- func (l *Log) Warn(arg interface{})
- func (l *Log) Warnf(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf is the same as Debug except formats string with provided arguments.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf is the same as Error except formats string with provided arguments.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf is the same as Fatal except formats string with provided arguments.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is the implementation of the Logger interface.
type Logger ¶
type Logger interface { // Debug is the debug level log method. Debug(arg interface{}) // Debugf the same as Debug except formats string with provided arguments. Debugf(format string, args ...interface{}) // Info is the info level log method. Info(arg interface{}) // Infof the same as Info except formats string with provided arguments. Infof(format string, args ...interface{}) // Warn is the warn level log method. Warn(arg interface{}) // Warnf the same as Warn except formats string with provided arguments. Warnf(format string, args ...interface{}) // Error is the error level log method. Error(arg interface{}) // Errorf the same as Error except formats string with provided arguments. Errorf(format string, args ...interface{}) // Fatal is the fatal level log method. Fatal(arg interface{}) // Fatalf the same as Fatal except formats string with provided arguments. Fatalf(format string, args ...interface{}) }
Logger is an interface type which represents a logger.
Click to show internal directories.
Click to hide internal directories.