It can be nice to have support to add a custom function to parse errors
for example, we can add a property to the 'logging' config options like this:
setGlobalInstance(
new Monitor({
logging: {
logger,
logErrorsAsWarnings: true,
defaultParseError: <user custom parse error function>,
},
})
);