InfofCtx logs the given formatted string and args to the info log level and given log key.
(ctx context.Context, logKey LogKey, format string, args ...any)
| 177 | |
| 178 | // InfofCtx logs the given formatted string and args to the info log level and given log key. |
| 179 | func InfofCtx(ctx context.Context, logKey LogKey, format string, args ...any) { |
| 180 | // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet |
| 181 | if false { |
| 182 | _ = fmt.Sprintf(format, args...) |
| 183 | } |
| 184 | logTo(ctx, LevelInfo, logKey, format, args...) |
| 185 | } |
| 186 | |
| 187 | // DebugfCtx logs the given formatted string and args to the debug log level with an optional log key. |
| 188 | func DebugfCtx(ctx context.Context, logKey LogKey, format string, args ...any) { |