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

Add support to customize ethers.js log level #7

Open
acuarica opened this issue Apr 29, 2022 · 0 comments
Open

Add support to customize ethers.js log level #7

acuarica opened this issue Apr 29, 2022 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@acuarica
Copy link
Owner

While editing a document in ethers mode, usually the intermediate edits lead to errors that are logged in the console.
Since there can be many, this can pollute the console error messages.

Add a configuration property to allow the user to define the log level[1] of ethers.js.
The levels defined by ethers.js are[2]

  • DEBUG Log all output, including debugging information.
  • INFO Only log output for informational, warnings and errors.
  • WARNING Only log output for warnings and errors.
  • ERROR Only log output for errors.
  • OFF Do not output any logs.

[1] https://docs.ethers.io/v5/api/utils/logger/#Logger-setLogLevel
[2] https://docs.ethers.io/v5/api/utils/logger/#Logger-levels

@acuarica acuarica added the feature New feature or request label Apr 29, 2022
@acuarica acuarica self-assigned this Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant