hilog支持的单次打印的最大字符数为4096个字符。如果想要打印超长字符串,建议分段打印let logIndex = 0 for (let index = 0; index < strRes.length/1000; index++) { let str = strRes.substring(logIndex,logIndex+1000) hilog.info(0x0000, 'strRes:', '%{public}s', str); logIndex = logIndex + 1000 }可参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-hilog-V5
hilog支持的单次打印的最大字符数为4096个字符。如果想要打印超长字符串,建议分段打印
可参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-hilog-V5