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.