Re:Console.log with style
by CGamesPlay on Friday April 12, 2013 @06:53PM
(#5541577)
I recommend simply using console.debug, console.log, console.warn, and console.error, which differentiate for you.
[ Parent
| on HN ]
Re:Console.log with style
by cristiantincu on Friday April 12, 2013 @06:55PM
(#5541591)
What about `console.info()`? Or is it a bit too adventurous?
Re:Console.log with style
by jaredmcateer on Friday April 12, 2013 @07:43PM
(#5541816)
info and log are indistinguishable, at least in Chrome.
Re:Console.log with style
by cristiantincu on Saturday April 13, 2013 @07:49AM
(#5543141)
Yes. So much about differentiation.
Re:Console.log with style
by jQueryIsAwesome on Friday April 12, 2013 @08:52PM
(#5542039)
Maybe add console.assert to that list:
console.assert(str.length === 10, "String is not 10 characters long!");
and console.group/groupEnd console.group("sums");
console.log(1 + 1);
console.log(2 - 3);
console.groupEnd();