Options: --clear Clear console before receiving new messages --follow Read more messages as they are being added --mozrepl connection string to Firefox
Clear the console before sending the text.
Keep watching the console and output text as it gets added.
Connection information for the mozrepl instance to use.
This program reads messages from the Error Console and sends them to STDOUT.
https://developer.mozilla.org/en/nsIConsoleService - the underlying Console Service that also shows how to listen to events getting added.