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-06-01 03:29:11 +02:00
|
|
|
SetOutput(io.Writer)
|
2016-09-25 20:56:51 +02:00
|
|
|
Level() log.Lvl
|
2016-06-09 02:16:03 +02:00
|
|
|
SetLevel(log.Lvl)
|
2016-09-25 21:14:50 +02:00
|
|
|
Prefix() string
|
|
|
|
SetPrefix(string)
|
2016-06-01 03:29:11 +02:00
|
|
|
Print(...interface{})
|
|
|
|
Printf(string, ...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Printj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Debug(...interface{})
|
|
|
|
Debugf(string, ...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Debugj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Info(...interface{})
|
|
|
|
Infof(string, ...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Infoj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Warn(...interface{})
|
|
|
|
Warnf(string, ...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Warnj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Error(...interface{})
|
|
|
|
Errorf(string, ...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Errorj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Fatal(...interface{})
|
2016-06-09 02:16:03 +02:00
|
|
|
Fatalj(log.JSON)
|
2016-06-01 03:29:11 +02:00
|
|
|
Fatalf(string, ...interface{})
|
2016-10-23 22:37:04 +02:00
|
|
|
Panic(...interface{})
|
|
|
|
Panicj(log.JSON)
|
|
|
|
Panicf(string, ...interface{})
|
2016-06-01 03:29:11 +02:00
|
|
|
}
|
|
|
|
)
|