mirror of
https://github.com/labstack/echo.git
synced 2024-11-28 08:38:39 +02:00
17c8b8f2ea
Signed-off-by: Vishal Rana <vr@labstack.com>
41 lines
787 B
Go
41 lines
787 B
Go
package echo
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/labstack/gommon/log"
|
|
)
|
|
|
|
type (
|
|
// Logger defines the logging interface.
|
|
Logger interface {
|
|
Output() io.Writer
|
|
SetOutput(io.Writer)
|
|
Level() log.Lvl
|
|
SetLevel(log.Lvl)
|
|
Prefix() string
|
|
SetPrefix(string)
|
|
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{})
|
|
Panic(...interface{})
|
|
Panicj(log.JSON)
|
|
Panicf(string, ...interface{})
|
|
}
|
|
)
|