light weight log for an easy use with some functionalities.
npm install --save light-log
The most easy use is:
log('some text');
log(error); // where error is an instance of Error.
The logger will detect what environment are you in and will write the log to a file of to the terminal depending on the situation.