MCPcopy
hub / github.com/docker/compose / logConsumer

Struct logConsumer

cmd/formatter/logs.go:35–44  ·  cmd/formatter/logs.go::logConsumer

LogConsumer consume logs from services and format them

Source from the content-addressed store, hash-verified

33
34// LogConsumer consume logs from services and format them
35type 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
47func NewLogConsumer(ctx context.Context, stdout, stderr io.Writer, color, prefix, timestamp bool) api.LogConsumer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected