|
I made something similar once, I heavily advise against using it in its current state, it was just experimental, but it's kinda fun to play around with. It's basically a floating console window with added features. It has two main functions 1. Notify, call loggy.notify to display a message right in your browser (instead of in the console)
2. call loggy(name, value), which is meant to track real-time values. For example your mouse position, say you loggy('mouse pos', mousePosition) on every `mousemove` event, it will show you the last value of `mousePosition` in the floating console window. It's like an fps tracker you see in games, constantly updating It has some other useful features too, it shows diffs between objects every loggy(..) call, and some really weird features I forgot about. It's fun to play around with, paste the gist in your console and then run this code as an example var count = 1;
setInterval(function () {
loggy('hello', 5);
count += 1;
loggy.notify('we've counted ' + count + ' times now!');
}, 1000); https://gist.github.com/Azeirah/0e558c439bd59646863a31540aa2... |