adamschwartz / log

Console.log with style.
https://adamschwartz.co/log
MIT License
3.01k stars 140 forks source link

Not working with Chrome on Arch Linux x64 #4

Closed Leandros closed 11 years ago

adamschwartz commented 11 years ago

What version of Chrome? (Visit chrome://chrome/.)

Leandros commented 11 years ago

chrome://version/ it is. ;)

Google Chrome 23.0.1271.95 (Official Build 169798) OS Linux WebKit 537.11 (@135931) JavaScript V8 3.13.7.5 Flash 11.2 r202 User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Command Line /usr/bin/google-chrome --flag-switches-begin --disable-force-compositing-mode --ignore-gpu-blacklist --show-fps-counter --flag-switches-end

Console Output:

%cLog%c font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #fff; font-size: 20px; padding: 15px 20px; background: #444; border-radius: 4px; line-height: 100px; text-shadow: 0 1px #000  log.js:19
%cExample 1 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; color: #444; padding: 8px 0; line-height: 40px log.js:19
tests: %citalic%c and %cbold%c. %cthis is italic%c and %cthis is bold%c. font-style: italic  font-weight: bold  font-style: italic  font-weight: bold  log.js:19
%cExample 2 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; color: #444; padding: 8px 0; line-height: 40px log.js:19
this is bold link: %chttp://google.com%c font-weight: bold  log.js:19
%cExample 3 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; color: #444; padding: 8px 0; line-height: 40px log.js:19
this is code: %ca == b == c%c background: rgb(255, 255, 219); padding: 1px 5px; border: 1px solid rgba(0, 0, 0, 0.1)  log.js:19
%cExample 4 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; color: #444; padding: 8px 0; line-height: 40px log.js:19
this is %cred%c. this is %cgreen%c. color: red  color: green  log.js:19
Resource interpreted as Font but transferred with MIME type application/font-woff: "chrome-extension://bfaekmalldododidalckpccilpcdefme/font/fontawesome-webfont.woff?v=3.0.1".
adamschwartz commented 11 years ago

I believe this feature wasn't added until Chrome 25 or 26. Is an update available for your OS?

Leandros commented 11 years ago

Yep, nevermind. Since google-chrome isn't in the official repositories of arch linux I haven't updated it a while. Working now.

adamschwartz commented 11 years ago

Awesome! Glad it's working for you.