plugins: prefix logger with the plugin name
This commit is contained in:
parent
02ccbc1f69
commit
1e896a9672
@ -49,10 +49,10 @@ const packageApis = function (packageInfo) {
|
|||||||
getPersistentStorageDir: getPersistentStorageDir.bind(this, packageInfo.packageName),
|
getPersistentStorageDir: getPersistentStorageDir.bind(this, packageInfo.packageName),
|
||||||
},
|
},
|
||||||
Logger: {
|
Logger: {
|
||||||
error: (...args) => log.error(...args),
|
error: (...args) => log.error(`[${packageInfo.packageName}]`, ...args),
|
||||||
warn: (...args) => log.warn(...args),
|
warn: (...args) => log.warn(`[${packageInfo.packageName}]`, ...args),
|
||||||
info: (...args) => log.info(...args),
|
info: (...args) => log.info(`[${packageInfo.packageName}]`, ...args),
|
||||||
debug: (...args) => log.debug(...args),
|
debug: (...args) => log.debug(`[${packageInfo.packageName}]`, ...args),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user