It should be useful to switch to a logger implementation entirely.
Describe the solution you'd like
1- Pass a logger inside the options, that defaults to console. (for backwards compatibility),
2- AND/OR allow to pass a custom "handleError" function as an option, so that we can customize the handling of internal errors.
Is your feature request related to a problem? Please describe. After #337, some references to console.warn are still in the codebase:
It should be useful to switch to a logger implementation entirely.
Describe the solution you'd like 1- Pass a logger inside the options, that defaults to console. (for backwards compatibility), 2- AND/OR allow to pass a custom "handleError" function as an option, so that we can customize the handling of internal errors.