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

Function setLogLevel

cmd/containerd/command/main.go:352–361  ·  view source on GitHub ↗
(cliContext *cli.Context, config *srvconfig.Config)

Source from the content-addressed store, hash-verified

350}
351
352func setLogLevel(cliContext *cli.Context, config *srvconfig.Config) error {
353 l := cliContext.String("log-level")
354 if l == "" {
355 l = config.Debug.Level
356 }
357 if l != "" {
358 return log.SetLevel(l)
359 }
360 return nil
361}
362
363func setLogFormat(config *srvconfig.Config) error {
364 f := log.OutputFormat(config.Debug.Format)

Callers 1

applyFlagsFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…