Skip to main content
Version: Next

Taro.getRealtimeLogManager()

Obtains the real-time log manager object.

Type

() => RealtimeLogManager

Parameters

Sample Code

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 Support

APIWeChat Mini-ProgramH5React Native
Taro.getRealtimeLogManager✔️