Documentation ¶
Index ¶
- func Config(level, logPath string, toStderr bool, maxSize, maxBackups uint)
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Warn(args ...interface{})
- func 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 calls the same method of DefaultLogger
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf calls the same method of DefaultLogger
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf calls the same method of DefaultLogger
func Infof ¶
func Infof(format string, args ...interface{})
Infof calls the same method of DefaultLogger
Types ¶
type Logger ¶
type Logger interface { Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) }
Logger is interface for logging
var ( // DefaultLogger provides global logging motheds DefaultLogger Logger )
Click to show internal directories.
Click to hide internal directories.