# RealtimeLogManager wx.getRealtimeLogManager()
Start from base library version 2.7.1. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.16.0
Gets the real-time log manager object.
# Return value
# RealtimeLogManager
# sample code
// Mini Program end
const logger = wx.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])
// Plug-in Side, Base Library 2.16.0 Post-version support allows only key-value New format for reporting
const logManager = wx.getRealtimeLogManager()
const logger = logManager.day('plugin-log1')
logger.info('key1', 'value1')
logger.error('key2', {str: 'value2'})
logger.warn('key3', 'value3')