(b *bytes.Buffer, value any)
| 175 | } |
| 176 | |
| 177 | func (f *TextFormatter) appendValue(b *bytes.Buffer, value any) { |
| 178 | stringVal, ok := value.(string) |
| 179 | if !ok { |
| 180 | stringVal = fmt.Sprint(value) |
| 181 | } |
| 182 | |
| 183 | // No quoting here; Original does quoting of values and empty values |
| 184 | b.WriteString(stringVal) |
| 185 | } |
| 186 | |
| 187 | // This is to not silently overwrite `time`, `msg` and `level` fields when |
| 188 | // dumping it. If this code wasn't there doing: |
no outgoing calls
no test coverage detected