Infof does info logging.
(format string, args ...any)
| 36 | |
| 37 | // Infof does info logging. |
| 38 | func (pl *PrefixLogger) Infof(format string, args ...any) { |
| 39 | if pl != nil { |
| 40 | // Handle nil, so the tests can pass in a nil logger. |
| 41 | format = pl.prefix + format |
| 42 | pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) |
| 43 | return |
| 44 | } |
| 45 | grpclog.InfoDepth(1, fmt.Sprintf(format, args...)) |
| 46 | } |
| 47 | |
| 48 | // Warningf does warning logging. |
| 49 | func (pl *PrefixLogger) Warningf(format string, args ...any) { |