These docs are for v1.0. Click to read the latest docs for v3.0.

Log additional application data.

LogRocket automatically instruments console.log calls (see console). If you'd like to log data but not have it appear in the 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' });