A logger which uses the FileSystem API in a WebWorker. For multi-channeled logs.
It uses a bit of trickery to avoid some Web Worker path and origin issues so the index.js
is compiled from the files in lib/
using a small build script into a single worker Blob.
Free Tip! Here's a trick to start tailing the last changed log file(s) in osx:
$ find ~/Library/Application\ Support/Google/{Chrome\ Canary,Chrome}/Default/File\ System -mmin -5 | grep -E '\d+\/\d+' | sed 's/ /\\ /g' | xargs tail -f
- Share the same log output from two browser tabs.
$ component install publicclass/log-worker
The API follows the Console API as defined in Node.js.
To build your own index.js
you need node.js and then run:
$ npm i
$ make
And you should have a new generated index.js
and a build/build.js
which will work in test.html
.
Happy coding!
MIT