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

@ -49,6 +49,8 @@
and whether the user only has read-only access.
* The `handleMessageSecurity` server-side hook can now be used to grant write
access for the current message only.
* The `init_<pluginName>` server-side hooks have a new `logger` context
property that plugins can use to log messages.
### Compatibility changes