diff --git a/README.md b/README.md index 2511077..436c0e5 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,8 @@ t.strictEqual(config.amqp.login, 'plop'); // converted from env Common-env 1.x.x-2.x.x was displaying logs, here is how to retrieve the same behaviour in 3.x.x. ```javascript -var config = require('common-env/legacy')().getOrElseAll({ +var logger = console; +var config = require('common-env/withLogger')(logger).getOrElseAll({ amqp: { login: { $default: 'guest', diff --git a/legacy/index.js b/legacy/index.js deleted file mode 100644 index fc9ef10..0000000 --- a/legacy/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = require('./legacy'); diff --git a/withLogger/index.js b/withLogger/index.js new file mode 100644 index 0000000..296dd10 --- /dev/null +++ b/withLogger/index.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./withLog'); diff --git a/legacy/legacy.js b/withLogger/withLogger.js similarity index 100% rename from legacy/legacy.js rename to withLogger/withLogger.js