MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / SetLogSink

Function SetLogSink

internal/logging/logr.go:24–24  ·  view source on GitHub ↗

SetLogSink replaces the global Logger with sink. Before this is called, the global Logger is a no-op.

(sink logr.LogSink)

Source from the content-addressed store, hash-verified

22// SetLogSink replaces the global Logger with sink. Before this is called,
23// the global Logger is a no-op.
24func SetLogSink(sink logr.LogSink) { global = logr.New(sink) }
25
26// NewContext returns a copy of ctx containing logger. Retrieve it using FromContext.
27func NewContext(ctx context.Context, logger Logger) context.Context {

Callers 4

suite_test.goFile · 0.92
initLoggingFunction · 0.92
TestSetLogSinkFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestSetLogSinkFunction · 0.68