plugins: Give each plugin a plugin-specific logger object

This makes it possible for plugins to stop assuming that log4js is
available at `ep_etherpad-lite/node_modules/log4js`.
This commit is contained in:
Richard Hansen 2022-02-21 03:25:32 -05:00
parent daee90d2af
commit 1513932ca1
3 changed files with 10 additions and 2 deletions

View file

@ -56,7 +56,10 @@ Called from: `src/static/js/pluginfw/plugins.js`
Run during startup after the named plugin is initialized.
Context properties: None
Context properties:
* `logger`: An object with the following `console`-like methods: `debug`,
`info`, `log`, `warn`, `error`.
## `expressPreSession`