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' });