(ctx context.Context, level int64, format string, args ...interface{})
| 96 | } |
| 97 | |
| 98 | func 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. |
| 111 | func NamespacedContext(ctx context.Context, namespace string) context.Context { |
searching dependent graphs…