Open joshdover opened 4 years ago
Pinging @elastic/kibana-platform (Team:Platform)
by logging a warning (in development?) when a logger.getLogger is called with a consecutive duplicate context name.
+1 for only logging in dev mode.
Thanks for the heads up, we did the fix in taskManager
By default, Kibana plugins are provided with a Logger instance that is already configured with a context name of the format
plugins.<pluginId>
. However, some plugins are creating child loggers that ALSO add the plugin's ID, resulting in a context likeplugins.<pluginId>.<pluginId>
.This is unnecessary and should be removed. Here are some plugins currently doing this:
First, we should definitely fix the offending plugins. But second, we could improve the developer experience here by logging a warning (in development?) when a
logger.getLogger
is called with a consecutive duplicate context name.