all files / src/ log.js

60% Statements 3/5
100% Branches 0/0
50% Functions 1/2
60% Lines 3/5
1 2 3 4 5 6 7 8 9 10 11 12 13                   
'use strict';
var debug = require('debug');
 
module.exports = function(thing){
  return {
    log: function(){
      var args = Array.prototype.slice.call(arguments);
      console.log(args.join(' '));
    },
    debug: debug('esw:' + thing)
  };
};