forked from labstack/echo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
40 lines (37 loc) · 787 Bytes
/
logger.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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{})
}
)