How to send logs to plugin owner for a plugin?

wanted to know that how to do set up to get error logs from customers?

If you want to do this, your best option is to use a 3rd party service that logs errors (whether it be PHP/JS/Web server errors).

I’m not sure if you can choose what type of bugs you want to show customers, maybe log to a different error log file depending on what type of error you find?

The following services can do what you need:

PHP – https://airbrake.io/languages/php_bug_tracker

JS – https://sentry.io/for/javascript/