diff --git a/src/plugins/packages/index.js b/src/plugins/packages/index.js index a0edeb11..6db96280 100644 --- a/src/plugins/packages/index.js +++ b/src/plugins/packages/index.js @@ -49,10 +49,10 @@ const packageApis = function (packageInfo) { getPersistentStorageDir: getPersistentStorageDir.bind(this, packageInfo.packageName), }, Logger: { - error: (...args) => log.error(...args), - warn: (...args) => log.warn(...args), - info: (...args) => log.info(...args), - debug: (...args) => log.debug(...args), + error: (...args) => log.error(`[${packageInfo.packageName}]`, ...args), + warn: (...args) => log.warn(`[${packageInfo.packageName}]`, ...args), + info: (...args) => log.info(`[${packageInfo.packageName}]`, ...args), + debug: (...args) => log.debug(`[${packageInfo.packageName}]`, ...args), }, }; };