(v string, buf *buffer.Buffer)
| 195 | } |
| 196 | |
| 197 | func appendPaddedString(v string, buf *buffer.Buffer) { |
| 198 | index := 0 |
| 199 | for { |
| 200 | index = strings.IndexByte(v, '\n') |
| 201 | if index < 0 { |
| 202 | buf.AppendString(v) |
| 203 | break |
| 204 | } |
| 205 | |
| 206 | buf.AppendString(v[:index+1]) |
| 207 | for i := 0; i < levelIndicatorRuneCount; i++ { |
| 208 | buf.AppendByte(' ') |
| 209 | } |
| 210 | |
| 211 | v = v[index+1:] |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func (t *consoleEncoder) encodeExtraFields(levelColor uint8, fieldNameAndValueList *[]*buffer.Buffer) int { |
| 216 | addedLength := 0 |
searching dependent graphs…