mirror of
https://github.com/labstack/echo.git
synced 2024-12-22 20:06:21 +02:00
f4088cf594
Signed-off-by: Vishal Rana <vr@labstack.com>
34 lines
633 B
Go
34 lines
633 B
Go
package log
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/labstack/gommon/log"
|
|
)
|
|
|
|
type (
|
|
// Logger defines the logging interface.
|
|
Logger interface {
|
|
SetOutput(io.Writer)
|
|
SetLevel(log.Lvl)
|
|
Print(...interface{})
|
|
Printf(string, ...interface{})
|
|
Printj(log.JSON)
|
|
Debug(...interface{})
|
|
Debugf(string, ...interface{})
|
|
Debugj(log.JSON)
|
|
Info(...interface{})
|
|
Infof(string, ...interface{})
|
|
Infoj(log.JSON)
|
|
Warn(...interface{})
|
|
Warnf(string, ...interface{})
|
|
Warnj(log.JSON)
|
|
Error(...interface{})
|
|
Errorf(string, ...interface{})
|
|
Errorj(log.JSON)
|
|
Fatal(...interface{})
|
|
Fatalj(log.JSON)
|
|
Fatalf(string, ...interface{})
|
|
}
|
|
)
|