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

Better control over stdio output from APIs #13126

Closed
bartlomieju opened this issue Dec 17, 2021 · 2 comments
Closed

Better control over stdio output from APIs #13126

bartlomieju opened this issue Dec 17, 2021 · 2 comments
Labels

Comments

@bartlomieju
Copy link
Member

bartlomieju commented Dec 17, 2021

In some situations we need better control over output coming from different APIs (console.log(), Deno.core.print()). Currently output always goes to stdout or stderr. However, in some contexts we would prefer to output to go somewhere else, eg:

CC @dsherret @lucacasonato @bnoordhuis

@bartlomieju bartlomieju changed the title Better control over output from APIs Better control over stdio output from APIs Dec 17, 2021
@bartlomieju
Copy link
Member Author

Actually this might already possible by overwriting op_print when required. I will keep this issue open for now.

@bartlomieju
Copy link
Member Author

Not needed, managed to handle that using op middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant