Summary: This is currently done by querying the 'console-log' event. Instead, make it type safe and official. Reviewed By: antonk52 Differential Revision: D50927954 fbshipit-source-id: ff767acdc51b942c6deb92ffbfd93288b3367062