MCPcopy
hub / github.com/kopia/kopia / Log2

Function Log2

internal/contentlog/contentlog_logger.go:72–74  ·  view source on GitHub ↗

Log2 logs a message with two parameters.

(ctx context.Context, l *Logger, format string, value1 T1, value2 T2)

Source from the content-addressed store, hash-verified

70
71// Log2 logs a message with two parameters.
72func Log2[T1, T2 ParamWriter](ctx context.Context, l *Logger, format string, value1 T1, value2 T2) {
73 Emit(ctx, l, debugMessageWithParams[T1, T2, voidParamValue, voidParamValue, voidParamValue, voidParamValue]{text: format, v1: value1, v2: value2})
74}
75
76// Log3 logs a message with three parameters.
77func Log3[T1, T2, T3 ParamWriter](ctx context.Context, l *Logger, format string, value1 T1, value2 T2, value3 T3) {

Callers 15

TestLog2Function · 0.92
TestLoggerMultipleLogsFunction · 0.92
BenchmarkLoggerFunction · 0.92
refreshLockedMethod · 0.92
loadRangeCheckpointsMethod · 0.92
committedStateMethod · 0.92
CloseMethod · 0.92
FlushCachesMethod · 0.92
DeleteUnreferencedPacksFunction · 0.92
extendBlobRetentionTimeFunction · 0.92

Calls 1

EmitFunction · 0.85

Tested by 3

TestLog2Function · 0.74
TestLoggerMultipleLogsFunction · 0.74
BenchmarkLoggerFunction · 0.74