2016-09-25 12:14:50 -07:00
|
|
|
package echo
|
2016-05-31 18:29:11 -07:00
|
|
|
|
2016-06-08 17:16:03 -07:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
|
|
|
"github.com/labstack/gommon/log"
|
|
|
|
)
|
2016-05-31 18:29:11 -07:00
|
|
|
|
|
|
|
type (
|
|
|
|
// Logger defines the logging interface.
|
|
|
|
Logger interface {
|
2016-09-25 11:56:51 -07:00
|
|
|
Output() io.Writer
|
2016-12-09 10:24:14 -08:00
|
|
|
SetOutput(w io.Writer)
|
2016-09-25 12:14:50 -07:00
|
|
|
Prefix() string
|
2016-12-09 10:24:14 -08:00
|
|
|
SetPrefix(p string)
|
|
|
|
Level() log.Lvl
|
|
|
|
SetLevel(v log.Lvl)
|
|
|
|
Print(i ...interface{})
|
|
|
|
Printf(format string, args ...interface{})
|
|
|
|
Printj(j log.JSON)
|
|
|
|
Debug(i ...interface{})
|
|
|
|
Debugf(format string, args ...interface{})
|
|
|
|
Debugj(j log.JSON)
|
|
|
|
Info(i ...interface{})
|
|
|
|
Infof(format string, args ...interface{})
|
|
|
|
Infoj(j log.JSON)
|
|
|
|
Warn(i ...interface{})
|
|
|
|
Warnf(format string, args ...interface{})
|
|
|
|
Warnj(j log.JSON)
|
|
|
|
Error(i ...interface{})
|
|
|
|
Errorf(format string, args ...interface{})
|
|
|
|
Errorj(j log.JSON)
|
|
|
|
Fatal(i ...interface{})
|
|
|
|
Fatalj(j log.JSON)
|
|
|
|
Fatalf(format string, args ...interface{})
|
|
|
|
Panic(i ...interface{})
|
|
|
|
Panicj(j log.JSON)
|
|
|
|
Panicf(format string, args ...interface{})
|
2016-05-31 18:29:11 -07:00
|
|
|
}
|
|
|
|
)
|