Is there any quick way of getting Chrome to output timestamps in console.log
writes (like Firefox does). Or is prepending new Date().getTime()
the only option?
Javascript – console.log timestamps in Chrome
google-chromejavascript
Related Topic
- Javascript – Disable same origin policy in Chrome
- Javascript – How to create an array containing 1…N
- Google-chrome – Disabling Chrome cache for website development
- Google-chrome – Getting Chrome to accept self-signed localhost certificate
- Javascript – How to add new array elements at the beginning of an array in Javascript
- Google-chrome – How to reposition Chrome Developer Tools
- Html – Disabling Chrome Autofill
- Html – Hide scroll bar, but while still being able to scroll
Best Answer
In Chrome, there is the option in Console Settings (Either press F1 or select Developer Tools -> Console -> Settings [upper-right corner] ) named "Show timestamps" which is exactly what I needed.
I've just found it. No other dirty hacks needed that destroys placeholders and erases place in the code where the messages was logged from.
Update for Chrome 68+
The "Show timestamps" setting has been moved to the Preferences pane of the "DevTools settings", found in the upper-right corner of the DevTools drawer: