Wrapper of browser console to display log messages in terminal element