How to intercept console.log()?

"[email protected]" <[email protected]> Tue, 05 Feb 2013 14:02:00 +0000
Newsgroups gmane.comp.mozilla.devel.embedding
Organization NovaDSP
Message-ID <[email protected]>
Once again embedding FF18 using XRE/XPCOM and friends.

I can now pick up .js errors etc but not any message sent to the 
console. Is there something that can be applied in native code along the 
lines of JS_SetErrorreporter?

Thanks.