-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Capturing System.out
etc. in Java code called by JS
#457
Comments
You can try rewriting System.out into the JS console. |
But how? |
Javet provides a module binder annotation V8Function, which you can use to override the methods in the console and bind them to Java's System. |
Please check the tutorial out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when JS calls Java code,
System.out
/System.err
is not redirected to v8'sconsole.log
/console.error
, so console interceptors cannot capture anything output by the embedded Java code.Is there a way to set this up? If not, please consider this a feature request.
The text was updated successfully, but these errors were encountered: