@@ -352,6 +352,12 @@ func (logger{{.Name}}) {{with $sev}}{{.Name}}{{end}}fDepth(ctx context.Context,
352
352
{{.Comment -}}
353
353
//
354
354
{{with $sev}}{{.Comment}}{{end -}}
355
+ //
356
+ // TODO: to avoid linting failures, we don't include details about
357
+ // alternative usage. Once all usages have been replaced, update the
358
+ // deprecation comment to describe the replacement functions
359
+ //
360
+ // Deprecated
355
361
func {{with $sev}}{{.Name}}{{end}}f(ctx context.Context, format string, args ...interface{}) {
356
362
logfDepth(ctx, 1, severity.{{with $sev}}{{.NAME}}{{end}}, channel.{{.NAME}}, format, args...)
357
363
}
@@ -363,6 +369,12 @@ func {{with $sev}}{{.Name}}{{end}}f(ctx context.Context, format string, args ...
363
369
{{.Comment -}}
364
370
//
365
371
{{with $sev}}{{.Comment}}{{end -}}
372
+ //
373
+ // TODO: to avoid linting failures, we don't include details about
374
+ // alternative usage. Once all usages have been replaced, update the
375
+ // deprecation comment to describe the replacement functions
376
+ //
377
+ // Deprecated
366
378
func V{{with $sev}}{{.Name}}{{end}}f(ctx context.Context, level Level, format string, args ...interface{}) {
367
379
if VDepth(level, 1) {
368
380
logfDepth(ctx, 1, severity.{{with $sev}}{{.NAME}}{{end}}, channel.{{.NAME}}, format, args...)
@@ -376,6 +388,12 @@ func V{{with $sev}}{{.Name}}{{end}}f(ctx context.Context, level Level, format st
376
388
{{.Comment -}}
377
389
//
378
390
{{with $sev}}{{.Comment}}{{end -}}
391
+ //
392
+ // TODO: to avoid linting failures, we don't include details about
393
+ // alternative usage. Once all usages have been replaced, update the
394
+ // deprecation comment to describe the replacement functions
395
+ //
396
+ // Deprecated
379
397
func {{with $sev}}{{.Name}}{{end}}(ctx context.Context, msg string) {
380
398
logfDepth(ctx, 1, severity.{{with $sev}}{{.NAME}}{{end}}, channel.{{.NAME}}, msg)
381
399
}
@@ -388,6 +406,12 @@ func {{with $sev}}{{.Name}}{{end}}(ctx context.Context, msg string) {
388
406
{{.Comment -}}
389
407
//
390
408
{{with $sev}}{{.Comment}}{{end -}}
409
+ //
410
+ // TODO: to avoid linting failures, we don't include details about
411
+ // alternative usage. Once all usages have been replaced, update the
412
+ // deprecation comment to describe the replacement functions
413
+ //
414
+ // Deprecated
391
415
func {{with $sev}}{{.Name}}{{end}}fDepth(ctx context.Context, depth int, format string, args ...interface{}) {
392
416
logfDepth(ctx, depth+1, severity.{{with $sev}}{{.NAME}}{{end}}, channel.{{.NAME}}, format, args...)
393
417
}
@@ -441,6 +465,12 @@ func (logger{{.Name}}) VEventfDepth(ctx context.Context, depth int, level Level,
441
465
// is currently redirected to a file.
442
466
//
443
467
{{.Comment -}}
468
+ //
469
+ // TODO: to avoid linting failures, we don't include details about
470
+ // alternative usage. Once all usages have been replaced, update the
471
+ // deprecation comment to describe the replacement functions
472
+ //
473
+ // Deprecated
444
474
func Shout(ctx context.Context, sev Severity, msg string) {
445
475
shoutfDepth(ctx, 1, sev, channel.{{.NAME}}, msg)
446
476
}
@@ -450,6 +480,12 @@ func Shout(ctx context.Context, sev Severity, msg string) {
450
480
// the manner of fmt.Printf.
451
481
//
452
482
{{.Comment -}}
483
+ //
484
+ // TODO: to avoid linting failures, we don't include details about
485
+ // alternative usage. Once all usages have been replaced, update the
486
+ // deprecation comment to describe the replacement functions
487
+ //
488
+ // Deprecated
453
489
func Shoutf(ctx context.Context, sev Severity, format string, args ...interface{}) {
454
490
shoutfDepth(ctx, 1, sev, channel.{{.NAME}}, format, args...)
455
491
}
0 commit comments