Int16 constructs a field with the given key and value.
(key string, val int16)
| 192 | |
| 193 | // Int16 constructs a field with the given key and value. |
| 194 | func Int16(key string, val int16) Field { |
| 195 | return Field{Key: key, Type: zapcore.Int16Type, Integer: int64(val)} |
| 196 | } |
| 197 | |
| 198 | // Int16p constructs a field that carries a *int16. The returned Field will safely |
| 199 | // and explicitly represent `nil` when appropriate. |
no outgoing calls