Logging error messages on android inside V8

82 views
Skip to first unread message

Alex Nahapetyan

unread,
Jul 22, 2022, 11:21:30 AM7/22/22
to v8-dev
Hey y'all,

As part of our research effort at my uni we patch V8 to log javascript API access. While attempt to do this on android and extracting logs via a network connection, our vv8_connect_to_logging_server_direct method fails (it's a simple c socket code). I was wondering if anyone can help us out to figure out a way to get stdout or any for of logging out of v8 on android or if anyone is aware why this might happen.

Thanks for reading through!

Camillo Bruni

unread,
Jul 22, 2022, 12:34:02 PM7/22/22
to v8-...@googlegroups.com
Hi, maybe looking at V8's PrintF helper can get you some hints?
We use that specifically to get better logging on android.

--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/65c6fd35-8880-4f17-96cd-e1628c3004d1n%40googlegroups.com.
Camillo Bruni | Software Engineer, V8 | Google Germany GmbH | Erika-Mann Str. 33, 80636 München 

Registergericht und -nummer: Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Diese E-Mail ist vertraulich. Falls Ssie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.  This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.

Alex Nahapetyan

unread,
Jul 22, 2022, 3:01:29 PM7/22/22
to v8-dev
You are a lifesaver. void OS::FPrint(FILE* out, const char* format, ...) ended up doing the trick! Thank you.
Reply all
Reply to author
Forward
0 new messages