5 use Psr\Log\AbstractLogger;
6 use Psr\Log\LoggerInterface;
37 if ( !isset( $this->singletons[$channel] ) ) {
38 $this->singletons[$channel] = $this->
createLogger( $channel );
40 return $this->singletons[$channel];
56 return new class( $channel,
$inner, $this ) extends AbstractLogger {
66 $this->channel = $channel;
67 $this->logger = $logger;
68 $this->parent = $parent;
72 public function log( $level, $message, array
$context = [] ) {
74 'channel' => $this->channel,
76 'message' => $message,
79 $this->logger->log( $level, $message,
$context );