/ConsoleFile.JS

Primary LanguageJavaScriptMIT LicenseMIT

ConsoleFile.JS

A library that allows you to log stuff into a log file in your browser (only Chrome for now, as no other browsers supports the FileSystem API ATM).

Current status

The library is far from finished. This is just a proof of concept for now (that doesn't work very well).

It will however allow you to do stuff like this:

console.file( 'my_log' ).log ( 'something' );
console.file().log ( 'something else' ); // uses 'default' for the name of the log file
console.file.log ( 'something different' ); // shortcut for the above

And whatever you log will get written to an actual log file on your disk.

Developing

this is more for me at the moment, so I don't forget how to start everything

# start the watch command
grunt watch

# start the static server
grunt http-server

This will start a static server on localhost:8080 and will rebuild build/consolefile.js each time a file inside src/ changes.

License

Licensed under MIT. See LICENSE.md file for details.

Bitdeli Badge