jbail / lumberjack

Lumberjack is a JavaScript utility that hijacks the browser console, makes it more beautiful and enhances it so logs can be split into more manageable chunks.
120 stars 8 forks source link

Fix dir method to not output color token #5

Closed disusered closed 10 years ago

disusered commented 10 years ago

I ran into an issue with console.dir showing a %c token since it doesn't handle colors, so I check for the method and only use colors if supported.

In the process I made some fixes so it would conform to JSHint.

jbail commented 10 years ago

Great stuff. Thank you!

disusered commented 10 years ago

You're welcome! I'll try to add line numbers to the output from the stack trace, time permitting. Thanks for the library!