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 option to redirect native stdout and stderr to Logcat #725

Closed
mhsmith opened this issue Oct 2, 2022 · 0 comments
Closed

Add option to redirect native stdout and stderr to Logcat #725

mhsmith opened this issue Oct 2, 2022 · 0 comments
Milestone

Comments

@mhsmith
Copy link
Member

mhsmith commented Oct 2, 2022

Chaquopy already redirects the Python stdout and stderr to the Android logcat. However, the native stdout and stderr are occasionally useful for debugging the Python startup process, or seeing error messages produced by non-Python libraries.

In order to capture any output from the Python startup process, the redirection would have to be done (or at least controlled) by AndroidPlatform. We shouldn't enable this by default, because it might conflict with other native code that's doing the same thing.

The native streams can be redirected using this technique, and the commented-out code in chaquopy_java.pyx for redirection to a file should be removed.

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

No branches or pull requests

1 participant