How to change the style of a log in the browser console ?

For you change the style of a log in the browser console you can use :


console.log('%c <string>', '<style>');

It works in the chrome javascript console and in the firebug.


Example :

Screen Shot 2016-04-07 at 8.12.12 AM

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s