'use strict';

var _ = require('lodash')
  , defaultConf, developmentConf, env, extraConf, productionConf, testConf;

env = process.env.NODE_ENV || 'development';

defaultConf = {
  logger: 'dev',
  port: process.env.PORT || 3000,
  mongoUri: 'mongodb://localhost/SecureChat'
};

developmentConf = {};

productionConf = {
  mongoUri: process.env.MONGOLAB_URI
};

testConf = {
  mongoUri: 'mongodb://localhost/SecureChatTest'
};

extraConf = {
  development: developmentConf,
  production: productionConf,
  test: testConf
}[env];

module.exports = _.merge(defaultConf, extraConf);

@@ -177,25 +177,8 @@
 = %7B%0A
-  logger: 'dev',%0A
   po
@@ -207,16 +207,57 @@
 %7C 3000,%0A
+%7D;%0A%0AdevelopmentConf = %7B%0A  logger: 'dev',%0A
   mongoU
@@ -301,49 +301,47 @@
 %7D;%0A%0A
-developmentConf = %7B%7D;%0A%0AproductionConf = %7B
+productionConf = %7B%0A  logger: 'default',
 %0A  m
@@ -391,16 +391,42 @@
 onf = %7B%0A
+  logger: function () %7B%7D,%0A
   mongoU

Change loggers and move some options