MCPcopy
hub / github.com/kopia/kopia / Log

Function Log

internal/contentlog/contentlog_logger.go:62–64  ·  view source on GitHub ↗

Log logs a message with no parameters.

(ctx context.Context, l *Logger, text string)

Source from the content-addressed store, hash-verified

60
61// Log logs a message with no parameters.
62func Log(ctx context.Context, l *Logger, text string) {
63 Emit(ctx, l, debugMessageWithParams[voidParamValue, voidParamValue, voidParamValue, voidParamValue, voidParamValue, voidParamValue]{text: text})
64}
65
66// Log1 logs a message with one parameter.
67func Log1[T1 ParamWriter](ctx context.Context, l *Logger, format string, value1 T1) {

Callers 15

TestLogManager_EnabledFunction · 0.92
TestLogManager_AutoFlushFunction · 0.92
TestLogManager_NullFunction · 0.92
TestLogFunction · 0.92
TestLoggerMultipleLogsFunction · 0.92
BenchmarkLoggerFunction · 0.92
refreshAttemptLockedMethod · 0.92
GetCompleteIndexSetMethod · 0.92
WriteIndexMethod · 0.92

Calls 1

EmitFunction · 0.85

Tested by 8

TestLogManager_EnabledFunction · 0.74
TestLogManager_AutoFlushFunction · 0.74
TestLogManager_NullFunction · 0.74
TestLogFunction · 0.74
TestLoggerMultipleLogsFunction · 0.74
BenchmarkLoggerFunction · 0.74