#!/usr/bin/env node

var path = require('path');
var findup = require('findup-sync');
var resolve = require('resolve').sync;

var base = process.cwd();

var nwitchPath;
try {
  nwitchPath = resolve('nwitch', {basedir: base});
} catch (error) {
  nwitchPath = findup('lib/index.js');
  if (!nwitchPath) {
    console.error('Unable to find local nwitch.');
  }
}

var configFile = path.resolve(base, './config.toml');

require(nwitchPath)(configFile);
@@ -119,16 +119,68 @@
 .sync;%0A%0A
+var logger = require('../lib/core/logger').logger;%0A%0A
 var base
@@ -357,15 +357,14 @@
     
-console
+logger
 .err

Use logger to log error finding local nwitch