-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext.go
More file actions
51 lines (40 loc) · 995 Bytes
/
Copy pathext.go
File metadata and controls
51 lines (40 loc) · 995 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
package log
import (
"go.uber.org/zap"
)
type ClassicLog interface {
Debug(args ...interface{})
Debugf(template string, args ...interface{})
Info(args ...interface{})
Infof(template string, args ...interface{})
Warn(args ...interface{})
Warnf(template string, args ...interface{})
Error(args ...interface{})
Errorf(template string, args ...interface{})
Fatal(args ...interface{})
Fatalf(template string, args ...interface{})
Panic(args ...interface{})
Panicf(template string, args ...interface{})
With(opt ...Opt) ClassicLog
}
type ZapLog interface {
Debug(msg string, fields ...zap.Field)
Info(msg string, fields ...zap.Field)
Warn(msg string, fields ...zap.Field)
Error(msg string, fields ...zap.Field)
Fatal(msg string, fields ...zap.Field)
Panic(msg string, fields ...zap.Field)
With(opt ...Opt) ZapLog
}
// Color thanks for go.uber.org/zap/internal/color.go
type Color uint8
const (
Black Color = iota + 30
Red
Green
Yellow
Blue
Magenta
Cyan
White
)