summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-25 14:55:37 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-25 14:55:37 +0100
commit06ab84abe33a131c089f42bf0bd9ede8deb6e671 (patch)
tree2b011ec994ad3e085fd7e8db741294f8c67b09a0 /lib/generators
parentbb5761e88548f607e3b0dc6b8e03c652c93a9511 (diff)
downloadgitbook-06ab84abe33a131c089f42bf0bd9ede8deb6e671.zip
gitbook-06ab84abe33a131c089f42bf0bd9ede8deb6e671.tar.gz
gitbook-06ab84abe33a131c089f42bf0bd9ede8deb6e671.tar.bz2
Improve logger module
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/ebook.js4
-rw-r--r--lib/generators/website.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 88159f3..1bad718 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -31,7 +31,7 @@ Generator.prototype.prepareTemplates = function() {
Generator.prototype.writeSummary = function() {
var that = this;
- that.book.logInfo("write SUMMARY.html");
+ that.book.log.info.ln("write SUMMARY.html");
return this._writeTemplate(this.templates["summary"], {}, path.join(this.options.output, "SUMMARY.html"));
};
@@ -98,7 +98,7 @@ Generator.prototype.finish = function() {
stringUtils.optionsToShellArgs(_options)
].join(" ");
- that.book.logInfo("start conversion to", that.ebookFormat);
+ that.book.log.info.ln("start conversion to", that.ebookFormat);
exec(command, function (error, stdout, stderr) {
if (error) {
if (error.code == 127) {
diff --git a/lib/generators/website.js b/lib/generators/website.js
index bb2daa1..d0c842f 100644
--- a/lib/generators/website.js
+++ b/lib/generators/website.js
@@ -132,7 +132,7 @@ Generator.prototype.writeParsedFile = function(page) {
var basePath = path.relative(path.dirname(output), this.options.output) || ".";
if (process.platform === 'win32') basePath = basePath.replace(/\\/g, '/');
- that.book.logInfo("write parsed file", page.path, "to", relativeOutput);
+ that.book.log.info.ln("write parsed file", page.path, "to", relativeOutput);
return that.normalizePage(page)
.then(function() {
return that._writeTemplate(that.templates["page"], {