MCPcopy Create free account
hub / github.com/golang/appengine / Logf

Function Logf

internal/api_common.go:98–108  ·  view source on GitHub ↗
(ctx context.Context, level int64, format string, args ...interface{})

Source from the content-addressed store, hash-verified

96}
97
98func Logf(ctx context.Context, level int64, format string, args ...interface{}) {
99 if f, ok := ctx.Value(&logOverrideKey).(logOverrideFunc); ok {
100 f(level, format, args...)
101 return
102 }
103 c := fromContext(ctx)
104 if c == nil {
105 panic(errNotAppEngineContext)
106 }
107 logf(c, level, format, args...)
108}
109
110// NamespacedContext wraps a Context to support namespaces.
111func NamespacedContext(ctx context.Context, namespace string) context.Context {

Callers 7

DebugfFunction · 0.92
InfofFunction · 0.92
WarningfFunction · 0.92
ErrorfFunction · 0.92
CriticalfFunction · 0.92
TestDelayedLogFlushingFunction · 0.70
TestLogFlushingFunction · 0.70

Calls 3

fromContextFunction · 0.70
logfFunction · 0.70
ValueMethod · 0.45

Tested by 2

TestDelayedLogFlushingFunction · 0.56
TestLogFlushingFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…