-
Notifications
You must be signed in to change notification settings - Fork 1
/
field.go
195 lines (146 loc) · 3.6 KB
/
field.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
package log
import (
"fmt"
"time"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
type Field = zap.Field
func Binary(key string, val []byte) Field {
return zap.Binary(key, val)
}
func Bool(key string, val bool) Field {
return zap.Bool(key, val)
}
func Boolp(key string, val *bool) Field {
return zap.Boolp(key, val)
}
func ByteString(key string, val []byte) Field {
return zap.ByteString(key, val)
}
func Complex128(key string, val complex128) Field {
return zap.Complex128(key, val)
}
func Complex128p(key string, val *complex128) Field {
return zap.Complex128p(key, val)
}
func Complex64(key string, val complex64) Field {
return zap.Complex64(key, val)
}
func Complex64p(key string, val *complex64) Field {
return zap.Complex64p(key, val)
}
func Float64(key string, val float64) Field {
return zap.Float64(key, val)
}
func Float64p(key string, val *float64) Field {
return zap.Float64p(key, val)
}
func Float32(key string, val float32) Field {
return zap.Float32(key, val)
}
func Float32p(key string, val *float32) Field {
return zap.Float32p(key, val)
}
func Int(key string, val int) Field {
return zap.Int(key, val)
}
func Intp(key string, val *int) Field {
return zap.Intp(key, val)
}
func Int64(key string, val int64) Field {
return zap.Int64(key, val)
}
func Int64p(key string, val *int64) Field {
return zap.Int64p(key, val)
}
func Int32(key string, val int32) Field {
return zap.Int32(key, val)
}
func Int32p(key string, val *int32) Field {
return zap.Int32p(key, val)
}
func Int16(key string, val int16) Field {
return zap.Int16(key, val)
}
func Int16p(key string, val *int16) Field {
return zap.Int16p(key, val)
}
func Int8(key string, val int8) Field {
return zap.Int8(key, val)
}
func Int8p(key string, val *int8) Field {
return zap.Int8p(key, val)
}
func Stringp(key string, val *string) Field {
return zap.Stringp(key, val)
}
func Uint(key string, val uint) Field {
return zap.Uint(key, val)
}
func Uintp(key string, val *uint) Field {
return zap.Uintp(key, val)
}
func Uint64(key string, val uint64) Field {
return zap.Uint64(key, val)
}
func Uint64p(key string, val *uint64) Field {
return zap.Uint64p(key, val)
}
func Uint32(key string, val uint32) Field {
return zap.Uint32(key, val)
}
func Uint32p(key string, val *uint32) Field {
return zap.Uint32p(key, val)
}
func Uint16(key string, val uint16) Field {
return zap.Uint16(key, val)
}
func Uint16p(key string, val *uint16) Field {
return zap.Uint16p(key, val)
}
func Uint8(key string, val uint8) Field {
return zap.Uint8(key, val)
}
func Uint8p(key string, val *uint8) Field {
return zap.Uint8p(key, val)
}
func Uintptr(key string, val uintptr) Field {
return zap.Uintptr(key, val)
}
func Uintptrp(key string, val *uintptr) Field {
return zap.Uintptrp(key, val)
}
func Reflect(key string, val interface{}) Field {
return zap.Reflect(key, val)
}
func Namespace(key string) Field {
return zap.Namespace(key)
}
func Stringer(key string, val fmt.Stringer) Field {
return zap.Stringer(key, val)
}
func Time(key string, val time.Time) Field {
return zap.Time(key, val)
}
func Timep(key string, val *time.Time) Field {
return zap.Timep(key, val)
}
func Stack(key string) Field {
return zap.Stack(key)
}
func StackSkip(key string, skip int) Field {
return zap.StackSkip(key, skip)
}
func Duration(key string, val time.Duration) Field {
return zap.Duration(key, val)
}
func Durationp(key string, val *time.Duration) Field {
return zap.Durationp(key, val)
}
func Object(key string, val zapcore.ObjectMarshaler) Field {
return zap.Object(key, val)
}
func Any(key string, value interface{}) Field {
return zap.Any(key, value)
}