diff --git a/lib/logger.js b/lib/logger.js index ad3347b..9c737ec 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -30,14 +30,14 @@ module.exports = function (prefix) { return; } var content = Array.prototype.slice.call(arguments, 0).join(''); - options.logInstance(options).notice('[yog-ral] ' + prefix + content); + options.logInstance(options).notice(`[${options.app}] ` + prefix + content); }, warning: function (msg) { if (options.disable) { return; } var content = Array.prototype.slice.call(arguments, 0).join(''); - options.logInstance(options).warning('[yog-ral] ' + prefix + content); + options.logInstance(options).warning(`[${options.app}] ` + prefix + content); }, fatal: function (msg) { @@ -45,7 +45,7 @@ module.exports = function (prefix) { return; } var content = Array.prototype.slice.call(arguments, 0).join(''); - options.logInstance(options).fatal('[yog-ral] ' + prefix + content); + options.logInstance(options).fatal(`[${options.app}] ` + prefix + content); }, trace: function () { @@ -53,7 +53,7 @@ module.exports = function (prefix) { return; } var content = Array.prototype.slice.call(arguments, 0).join(''); - options.logInstance(options).trace('[yog-ral] ' + prefix + content); + options.logInstance(options).trace(`[${options.app}] ` + prefix + content); }, debug: function (msg) { @@ -61,7 +61,7 @@ module.exports = function (prefix) { return; } var content = Array.prototype.slice.call(arguments, 0).join(''); - options.logInstance(options).debug('[yog-ral] ' + prefix + content); + options.logInstance(options).debug(`[${options.app}] ` + prefix + content); } }; };