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

Use captureMessage to manually report a message (i.e., a string):

LogRocket.captureMessage('Something is wrong!', {
  tags: {
    // additional data to be grouped as "tags"
    subscription: 'Pro',
  },
  extra: {
    // additional arbitrary data associated with the event
    pageName: 'ProfileView',
  },
});

Add tags and extra fields to send extra metadata about the message.