-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
40 lines (38 loc) · 1.08 KB
/
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 k8pool
import (
"github.com/rs/zerolog"
)
type logger interface {
Panic(v ...interface{})
Panicf(format string, v ...interface{})
Panicln(v ...interface{})
Fatal(v ...interface{})
Fatalf(format string, v ...interface{})
Fatalln(v ...interface{})
Error(v ...interface{})
Errorf(format string, v ...interface{})
Errorln(v ...interface{})
Warn(v ...interface{})
Warnf(format string, v ...interface{})
Warnln(v ...interface{})
Warning(v ...interface{})
Warningf(format string, v ...interface{})
Warningln(v ...interface{})
Info(v ...interface{})
Infof(format string, v ...interface{})
Infoln(v ...interface{})
Debug(v ...interface{})
Debugf(format string, v ...interface{})
Debugln(v ...interface{})
Print(v ...interface{})
Printf(format string, v ...interface{})
Println(v ...interface{})
Trace(v ...interface{})
Tracef(format string, v ...interface{})
Traceln(v ...interface{})
V(verbosity int) bool
SetLevel(lvl zerolog.Level)
GetLevel() zerolog.Level
WithField(key string, value interface{}) zerolog.Context
WithFields(fields map[string]interface{}) zerolog.Context
}