(key fieldKey)
| 13 | type FieldMap map[fieldKey]string |
| 14 | |
| 15 | func (f FieldMap) resolve(key fieldKey) string { |
| 16 | if k, ok := f[key]; ok { |
| 17 | return k |
| 18 | } |
| 19 | |
| 20 | return string(key) |
| 21 | } |
| 22 | |
| 23 | // JSONFormatter formats logs into parsable json |
| 24 | type JSONFormatter struct { |
no outgoing calls
no test coverage detected