MCPcopy Index your code
hub / github.com/containerd/containerd / setLogFormat

Function setLogFormat

cmd/containerd/command/main.go:363–370  ·  view source on GitHub ↗
(config *srvconfig.Config)

Source from the content-addressed store, hash-verified

361}
362
363func setLogFormat(config *srvconfig.Config) error {
364 f := log.OutputFormat(config.Debug.Format)
365 if f == "" {
366 f = log.TextFormat
367 }
368
369 return log.SetFormat(f)
370}
371
372func dumpStacks(writeToFile bool) {
373 var (

Callers 1

applyFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…