Skip to main content
Version: 下个版本

Taro.getRealtimeLogManager()

获取实时日志管理器对象。

类型#

() => RealtimeLogManager

参数#

示例代码#

const logger = Taro.getRealtimeLogManager()
logger.info({str: 'hello world'}, 'info log', 100, [1, 2, 3])
logger.error({str: 'hello world'}, 'error log', 100, [1, 2, 3])
logger.warn({str: 'hello world'}, 'warn log', 100, [1, 2, 3])

API 支持度#

API微信小程序H5React Native
Taro.getRealtimeLogManager✔️