plugins: add Logger interface
Plugins need to be able to log messasages, say for errors.
This commit is contained in:
parent
8a57f90b65
commit
bb4ab4f168
@ -47,6 +47,12 @@ const packageApis = function (packageInfo) {
|
|||||||
Config: {
|
Config: {
|
||||||
getConfig: () => Helper.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),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user