(width int)
| 154 | } |
| 155 | |
| 156 | func (p *presenter) setPrefix(width int) { |
| 157 | if p.name == api.WatchLogger { |
| 158 | p.prefix = p.colors(strings.Repeat(" ", width) + " ⦿ ") |
| 159 | return |
| 160 | } |
| 161 | p.prefix = p.colors(fmt.Sprintf("%-"+strconv.Itoa(width)+"s | ", p.name)) |
| 162 | } |
| 163 | |
| 164 | type logDecorator struct { |
| 165 | decorated api.LogConsumer |