MCPcopy
hub / github.com/coredns/coredns / Fatalf

Function Fatalf

plugin/pkg/log/log.go:94–94  ·  view source on GitHub ↗

Fatalf is equivalent to log.Printf, but prefixed with "[FATAL] ", and calling os.Exit(1)

(format string, v ...any)

Source from the content-addressed store, hash-verified

92// Fatalf is equivalent to log.Printf, but prefixed with "[FATAL] ", and calling
93// os.Exit(1)
94func Fatalf(format string, v ...any) { logf(fatal, format, v...); os.Exit(1) }
95
96// Discard sets the log output to /dev/null.
97func Discard() { golog.SetOutput(io.Discard) }

Callers 2

MustRegisterMethod · 0.92
ServeDNSMethod · 0.92

Calls 1

logfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…