Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google chrome also has a console object. Where is its equivalent API page?

if I google 'firebug console API' it leads me to this page:

http://getfirebug.com/wiki/index.php/Console_API

which documents for me the Javascript console API I can use to write to the firebug console

Google chrome also has a console object. Where is its equivalent API page?

For example, Firebug, allows: console.log('%c%s', 'color: #ABC', 'hi') to output a string in a particular color

While google chrome only accepts console.log('%s', 'hi) - it dosn't accept %c

like image 953
Tucker Jones Avatar asked May 20 '11 15:05

Tucker Jones


1 Answers

Chrome is using Webkit engine, same as Safari, so you can check out Console API from Safari.

like image 196
serg Avatar answered Nov 15 '22 06:11

serg