loggingtofile
An easy way to log to a file. Makes it very easy to override console.log(). I hope to add support for different structures, e.g. HTML lists, Markdown, csv, tables, etc. Suggestions are welcome.
Installation
npm install loggingtofile
Usage
var Loggingtofile = require('Loggingtofile');
var logger = new Loggingtofile('output.txt');
logger.log('This is a log message.');
console.log = logger.log;
console.log('This is a console.log message.');
Output
Thu Feb 20 2014 18:05:08 GMT+1100 (EST): This is a log message.
Thu Feb 20 2014 18:05:08 GMT+1100 (EST): This is a console.log message