A Simple Log Function with Namespace and Date Stamp
This is a simple log module that write log messages with a date-stamp and a name-space to the standard output (or a specified writable stream, pass it in as the second argument to the generateLogger function).
It is quick and dirty and not optimized for performance.
var generateLogger = var log = // -> 2015-02-02 11:35 [namespace] my message
If the last argument is an array the content will be printet in params after the name-space.
var generateLogger = var log = // -> 2015-02-02 11:35 [namespace] (foo, bar) my message
That is all.
License
MIT