WarnfCtx logs the given formatted string and args to the warn log level and given log key.
(ctx context.Context, format string, args ...any)
| 168 | |
| 169 | // WarnfCtx logs the given formatted string and args to the warn log level and given log key. |
| 170 | func WarnfCtx(ctx context.Context, format string, args ...any) { |
| 171 | // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet |
| 172 | if false { |
| 173 | _ = fmt.Sprintf(format, args...) |
| 174 | } |
| 175 | logTo(ctx, LevelWarn, KeyAll, format, args...) |
| 176 | } |
| 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) { |