LogConsumer consume logs from services and format them
| 33 | |
| 34 | // LogConsumer consume logs from services and format them |
| 35 | type logConsumer struct { |
| 36 | ctx context.Context |
| 37 | presenters sync.Map // map[string]*presenter |
| 38 | width int |
| 39 | stdout io.Writer |
| 40 | stderr io.Writer |
| 41 | color bool |
| 42 | prefix bool |
| 43 | timestamp bool |
| 44 | } |
| 45 | |
| 46 | // NewLogConsumer creates a new LogConsumer |
| 47 | func NewLogConsumer(ctx context.Context, stdout, stderr io.Writer, color, prefix, timestamp bool) api.LogConsumer { |
nothing calls this directly
no outgoing calls
no test coverage detected