Logger in New Platform should expose a factory method #39695
Labels
chore
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
In the New platform,
LoggerFactory
can createLogger
, butLogger
cannot create a newLogger
that extend parents context.When you want to create several loggers in one context you either have to pass several different
Logger
instances or pass bothLogger
andLoggerFactory
deeper to a children tree and repeat the whole list of context paths down the tree.To solve the problem we can extend
Logger
to provide a Factory method that creates new logger bound to a parent context. Something like:The text was updated successfully, but these errors were encountered: