src/LoggyMiddleware.php
protected function setLoggers()
    {
        if ($loggers = $this->hasLoggerConfig()) {
            foreach ($loggers as $channel => $logger) {
                $loggerChannel = $this->getChannelName($logger, $channel);
                $loggerName = $this->getLoggerIdentified($logger, $loggerChannel);
                
                $this->container[$loggerName] = Logger::get(
                    $loggerChannel, 
                    $this->buildHandlers($logger['handlers']??[])
                );
            }
        }
    }
protected function setLoggers()
    {
        if ($loggers = $this->hasLoggerConfig()) {
            foreach ($loggers as $channel => $logger) {
                $loggerChannel = $this->getChannelName($logger, $channel);
                $loggerName = $this->getLoggerIdentified($logger, $loggerChannel);
                
                $this->container[$loggerName] = Logger::get(
                    $loggerChannel, 
                    $this->buildHandlers($logger['handlers']??[])
                );
            }
        }
    }
protected function setLoggers ( ) { if ( $ loggers = $ this -> hasLoggerConfig ( ) ) { foreach ( $ loggers as $ channel => $ logger ) { $ loggerChannel = $ this -> getChannelName ( $ logger , $ channel ) ; $ loggerName = $ this -> getLoggerIdentified ( $ logger , $ loggerChannel ) ; $ this -> container [ $ loggerName ] = Logger :: get ( $ loggerChannel , $ this -> buildHandlers ( $ logger [ 'handlers' ] ?? [ ] ) ) ; } } }
Crea los loggers en el container

@return void
Crea los loggers en el container