You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB
Go

7 years ago
package log
// Won't compile if LogInterface can't be realized by a log.Logger
var (
_ StdLog = Default
_ LogInterface = Default
)
// StdLog is interface for builtin log
type StdLog interface {
Print(...interface{})
Printf(string, ...interface{})
Println(...interface{})
Fatal(...interface{})
Fatalf(string, ...interface{})
Fatalln(...interface{})
Panic(...interface{})
Panicf(string, ...interface{})
Panicln(...interface{})
}
// LogInterface is interface for this logger
type LogInterface interface {
Debug(...interface{})
Info(...interface{})
Print(...interface{})
Warn(...interface{})
Error(...interface{})
Panic(...interface{})
Fatal(...interface{})
Debugln(...interface{})
Infoln(...interface{})
Println(...interface{})
Warnln(...interface{})
Errorln(...interface{})
Panicln(...interface{})
Fatalln(...interface{})
Debugf(string, ...interface{})
Infof(string, ...interface{})
Printf(string, ...interface{})
Warnf(string, ...interface{})
Errorf(string, ...interface{})
Panicf(string, ...interface{})
Fatalf(string, ...interface{})
}