summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/config/index.js4
-rw-r--r--lib/output/base.js6
-rw-r--r--lib/plugins/plugin.js2
3 files changed, 8 insertions, 4 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 34bf97c..72b2026 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -30,14 +30,14 @@ function Config(book, baseConfig) {
Config.prototype.load = function() {
var that = this;
- this.log.info.ln('loading configuration');
-
// Try all potential configuration file
return Promise.some(CONFIG_FILES, function(filename) {
that.log.debug.ln('try loading configuration from', filename);
return that.fs.loadAsObject(that.book.resolve(filename))
.then(function(_config) {
+ that.log.debug.ln('configuration loaded from', filename);
+
that.path = filename;
return that.replace(_config);
})
diff --git a/lib/output/base.js b/lib/output/base.js
index e0b58b4..fe792ee 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -61,7 +61,7 @@ Output.prototype.generate = function() {
// Initialize the generation
.then(function() {
- that.log.debug.ln('preparing the generation');
+ that.log.info.ln('preparing the generation');
return that.prepare();
})
@@ -106,6 +106,9 @@ Output.prototype.generate = function() {
if (!that.book.isMultilingual()) return;
return Promise.serie(that.book.books, function(subbook) {
+ that.log.info.ln('');
+ that.log.info.ln('start generation of language "' + path.relative(that.book.root, subbook.root) + '"');
+
var out = that.onLanguageBook(subbook);
return out.generate();
});
@@ -118,6 +121,7 @@ Output.prototype.generate = function() {
})
.then(function() {
+ if (!that.book.isLanguageBook()) that.log.info.ln('');
that.log.info.ln('generation finished with success!');
});
};
diff --git a/lib/plugins/plugin.js b/lib/plugins/plugin.js
index e2a2ca6..dc2e4f5 100644
--- a/lib/plugins/plugin.js
+++ b/lib/plugins/plugin.js
@@ -113,7 +113,7 @@ BookPlugin.prototype.load = function(folder) {
that.book.config.set(that.getConfigKey(), config);
});
- this.log.info('Loading plugin "' + this.id + '" ...');
+ this.log.info('loading plugin "' + this.id + '" ...');
return this.log.info.promise(p);
};