Log additional application data to the LogRocket dashboard

LogRocket automatically instruments console.log calls (see console). If you'd like to log data but not have it appear in the browser console while developing, you can call any of these methods:

  • LogRocket.log()
  • LogRocket.info()
  • LogRocket.warn()
  • LogRocket.debug()
  • LogRocket.error()
LogRocket.log('foo', { bar: 'baz' });