How to upload logs along with error report

Is there any way to upload the logs along with the error report?

Logs like, console message.

Please refer to https://sentry.io/vs/logging/

However, we should show you the last n “log entries”, i.e. mouseclicks, console.log, xhr requests automatically.