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

Customizable console #3582

Open
tokuhirom opened this issue Jan 12, 2024 · 0 comments
Open

Customizable console #3582

tokuhirom opened this issue Jan 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tokuhirom
Copy link

tokuhirom commented Jan 12, 2024

Current implementation of the console is not customizable. i mean, it's hard-coded to print/eprint.
I want to forward the console's output to the logger. could you support it?

https://github.com/boa-dev/boa/blob/main/core/runtime/src/console/mod.rs

If i can use the console class like this, it's very nice to me(I can save the boa's output to file or something).

Console::init_with_callback(&context, |msg| {
  log::Info!("[boa] {}", msg)
})
@tokuhirom tokuhirom added the enhancement New feature or request label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant