(blockId string, format string, args []any)
| 66 | } |
| 67 | |
| 68 | func 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 | |
| 78 | func Infof(ctx context.Context, format string, args ...any) { |
| 79 | logData := getLogBlockData(ctx) |
no test coverage detected