MCPcopy
hub / github.com/wavetermdev/waveterm / writeLogf

Function writeLogf

pkg/blocklogger/blocklogger.go:68–76  ·  view source on GitHub ↗
(blockId string, format string, args []any)

Source from the content-addressed store, hash-verified

66}
67
68func writeLogf(blockId string, format string, args []any) {
69 logStr := fmt.Sprintf(format, args...)
70 logStr = strings.ReplaceAll(logStr, "\n", "\r\n")
71 data := wshrpc.CommandControllerAppendOutputData{
72 BlockId: blockId,
73 Data64: base64.StdEncoding.EncodeToString([]byte(logStr)),
74 }
75 queueLogData(data)
76}
77
78func Infof(ctx context.Context, format string, args ...any) {
79 logData := getLogBlockData(ctx)

Callers 2

InfofFunction · 0.85
DebugfFunction · 0.85

Calls 1

queueLogDataFunction · 0.85

Tested by

no test coverage detected