plugins: add Logger interface

Plugins need to be able to log messasages, say for errors.
This commit is contained in:
Reto Brunner 2021-10-12 21:57:29 +02:00
parent 8a57f90b65
commit bb4ab4f168

View File

@ -47,6 +47,12 @@ const packageApis = function (packageInfo) {
Config: {
getConfig: () => Helper.config,
},
Logger: {
error: (...args) => log.error(...args),
warn: (...args) => log.warn(...args),
info: (...args) => log.info(...args),
debug: (...args) => log.debug(...args),
},
};
};