Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user custom function to parse errors #48

Open
shpigluto opened this issue Jul 14, 2022 · 0 comments
Open

Support user custom function to parse errors #48

shpigluto opened this issue Jul 14, 2022 · 0 comments

Comments

@shpigluto
Copy link

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>,
              },
        })
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant