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

Method Log

pkg/compose/logs_test.go:228–235  ·  view source on GitHub ↗
(containerName, message string)

Source from the content-addressed store, hash-verified

226}
227
228func (l *testLogConsumer) Log(containerName, message string) {
229 l.mu.Lock()
230 defer l.mu.Unlock()
231 if l.logs == nil {
232 l.logs = make(map[string][]string)
233 }
234 l.logs[containerName] = append(l.logs[containerName], message)
235}
236
237func (l *testLogConsumer) Err(containerName, message string) {
238 l.Log(containerName, message)

Callers 1

ErrMethod · 0.95

Calls 1

LockMethod · 0.45

Tested by

no test coverage detected