From bb4ab4f1687ed0d94acc62a9999e1c08d3f49b5e Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Tue, 12 Oct 2021 21:57:29 +0200 Subject: [PATCH] plugins: add Logger interface Plugins need to be able to log messasages, say for errors. --- src/plugins/packages/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/packages/index.js b/src/plugins/packages/index.js index ea1ed2cd..47b9e7fb 100644 --- a/src/plugins/packages/index.js +++ b/src/plugins/packages/index.js @@ -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), + }, }; };