Logf is expected to support the standard fmt package "verbs".
(classification logging.Classification, format string, v ...any)
| 1438 | |
| 1439 | // Logf is expected to support the standard fmt package "verbs". |
| 1440 | func (s3logger) Logf(classification logging.Classification, format string, v ...any) { |
| 1441 | switch classification { |
| 1442 | default: |
| 1443 | case logging.Debug: |
| 1444 | fs.Debugf("S3 SDK", format, v...) |
| 1445 | case logging.Warn: |
| 1446 | fs.Infof("S3 SDK", format, v...) |
| 1447 | } |
| 1448 | } |
| 1449 | |
| 1450 | // s3Connection makes a connection to s3 |
| 1451 | func s3Connection(ctx context.Context, opt *Options, client *http.Client) (s3Client *s3.Client, provider *Provider, err error) { |