logws
v0.3.2
Published
Console.log with style
Downloads
4
Readme
Log
Console.log with style
THIS REPO IS FORKED FROM git://github.com/adamswartz/log.git THANKS @copyright adamswartz!
Features
- Safely call
log
(instead ofconsole.log
) in any browser. - Use markdown syntax for quick formatting:
- italic —
log('this is *italic*')
- bold —
log('this word _bold_')
code
—log('this word `code`')
- * - italic
- _ - bold
- - - bold & italic
- <B> - blue
- <C> - cyan
- <G> - green
- <R> - rad
- <Y> - yellow
- <*B> - blue & italic
- <*C> - cyan & italic
- <*G> - green & italic
- <*R> - rad & italic
- <*Y> - yellow & italic
- <_B> - blue & bold
- <_C> - cyan & bold
- <_G> - green & bold
- <_R> - rad & bold
- <_Y> - yellow & bold
- <-B> - blue & bold & italic
- <-C> - cyan & bold & italic
- <-G> - green & bold & italic
- <-R> - rad & bold & italic
- <-Y> - yellow & bold & italic
- italic —
- Use a custom syntax to style text however you want:
log('this is [c="color: red"]red[c]')
.
Can not be used nested
Support
Stylized logs are supported in the following browsers:
- Chrome 26+
- Firefox 31+ or with Firebug 1.11 beta 2 or later
- Opera with Blink (15+)
- Safari Nightly (537.38+)
Screenshot
Implementations
- Ruby on Rails — https://github.com/vlado/rails_javascript_log