2016-09-25 21:14:50 +02:00
|
|
|
package echo
|
2016-06-01 03:29:11 +02:00
|
|
|
|
2016-06-09 02:16:03 +02:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
|
|
|
"github.com/labstack/gommon/log"
|
|
|
|
)
|
2016-06-01 03:29:11 +02:00
|
|
|
|
|
|
|
type (
|
|
|
|
// Logger defines the logging interface.
|
|
|
|
Logger interface {
|
2016-09-25 20:56:51 +02:00
|
|
|
Output() io.Writer
|
2016-12-09 20:24:14 +02:00
|
|
|
SetOutput(w io.Writer)
|
2016-09-25 21:14:50 +02:00
|
|
|
Prefix() string
|
2016-12-09 20:24:14 +02:00
|
|
|
SetPrefix(p string)
|
|
|
|
Level() log.Lvl
|
|
|
|
SetLevel(v log.Lvl)
|
2018-09-28 19:47:23 +02:00
|
|
|
SetHeader(h string)
|
2016-12-09 20:24:14 +02:00
|
|
|
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-06-01 03:29:11 +02:00
|
|
|
}
|
|
|
|
)
|