String constructs a field with the given key and value.
(key string, val string)
| 220 | |
| 221 | // String constructs a field with the given key and value. |
| 222 | func String(key string, val string) Field { |
| 223 | return Field{Key: key, Type: zapcore.StringType, String: val} |
| 224 | } |
| 225 | |
| 226 | // Stringp constructs a field that carries a *string. The returned Field will safely |
| 227 | // and explicitly represent `nil` when appropriate. |
no outgoing calls