2016-06-01 03:29:11 +02:00
|
|
|
package log
|
|
|
|
|
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 {
|
|
|
|
SetOutput(io.Writer)
|
2016-06-09 02:16:03 +02:00
|
|
|
SetLevel(log.Lvl)
|
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{})
|
|
|
|
}
|
|
|
|
)
|