Capturing stdout

12 views
Skip to first unread message

Chris Granger

unread,
Aug 12, 2013, 11:39:07 PM8/12/13
to node-...@googlegroups.com
What is the correct way to capture all of stdout? It seems like node-webkit doesn't use process.stdout for all of its printing mechanisms from what I can tell. Am I maybe missing something obvious?

Cheers,
Chris.

Roger

unread,
Aug 14, 2013, 3:55:50 AM8/14/13
to Chris Granger, node-...@googlegroups.com
Are you going to capture all the messages one will see in the console
window after launching nw app, including the timestamps in the beginning
of each lines?

--
Roger

Chris Granger

unread,
Aug 14, 2013, 12:00:16 PM8/14/13
to node-...@googlegroups.com
I don't really care about the timestamps, though I don't mind if they're there either. Either way, yes I'd like to capture everything that would to the console.

Cheers,
Chris.



--
Roger

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

pure...@gmail.com

unread,
Mar 25, 2014, 9:47:12 AM3/25/14
to node-...@googlegroups.com
I'd be interested in this as well, was this solved somehow?

LZAntal

unread,
Mar 25, 2014, 11:42:34 AM3/25/14
to node-...@googlegroups.com
Hi,

On Mar 25, 2014, at 6:47 AM, pure...@gmail.com wrote:

I'd be interested in this as well, was this solved somehow?

This is simple to implement using WebSocket. Start node-webkit with the debug port set, then open a WebSocket connection to it with socket = new WebSocket(you url here with port number) then implement the the socket.onmessage method and you will receive all the console.log messages with time stamp and all the other data it provides. Here is the link to read more about what it offers https://code.google.com/p/chromedevtools/wiki/WebKitProtocol

Hope it helps


For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages