textarea-log
Create a textarea where debug log can be written.
This was created due to the difficulty I had when copying lengthy debug logs created by console.log
.
clone
$ fossil clone https://chiselapp.com/user/frostbane/repository/textarea-log textarea-log.fossil$ fossil open textarea-log.fossil
usage
// show textareatextarea; // output some log to text areatextarea;
documentation
install dependencies
$ npm install
generate documentation and see doc/textarea-log/index.html
for the complete API
$ ./node_modules/.bin/grunt document
Basic API
show
show the textarea
void textarea;
hide
hide the textarea
void textarea;
getBuffer
get the text area buffer content
String textarea;
clear
clear the textarea
everytime the buffer is cleared the cleared contents is added to the buffer history
void textareaclear;
getHistory
get a copy of the buffer history
String textarea;
clearHistory
clear the buffer history
void textarea;
Injecting the console
``console.log(),
console.error()`, etc. will also be logging the output to the textarea.
textarea; console