• Log.js

  • ¶
    function Log() {
    }
    
    Log.message = function(msg) {
      if (console !== undefined) {
        var msgs = Array.prototype.slice.call(arguments);
        console.log(msgs.join(' '));
      }
    };
    
    Log.error = function(msg) {
      var msgs = Array.prototype.slice.call(arguments);
      if (console !== undefined) {
        console.log('ERROR: ' + msgs.join(' '));
      }
    };
    
    module.exports = Log;