src/Log/AggregateLogger.php
public function removeLoggerByInstance($logger, $trigger = true) {
        foreach ($this->loggers as $key => $addedLogger) {
            if ($addedLogger[0] === $logger) {
                unset($this->loggers[$key]);
                return $this;
            }
        }

        if ($trigger) {
            $class = get_class($logger);
            trigger_error("Logger $class was removed without being added.");
        }

        return $this;
    }
public function removeLoggerByInstance($logger, $trigger = true) {
        foreach ($this->loggers as $key => $addedLogger) {
            if ($addedLogger[0] === $logger) {
                unset($this->loggers[$key]);
                return $this;
            }
        }

        if ($trigger) {
            $class = get_class($logger);
            trigger_error("Logger $class was removed without being added.");
        }

        return $this;
    }
public function removeLoggerByInstance ( $ logger , $ trigger = true ) { foreach ( $ this -> loggers as $ key => $ addedLogger ) { if ( $ addedLogger [ 0 ] === $ logger ) { unset ( $ this -> loggers [ $ key ] ) ; return $ this ; } } if ( $ trigger ) { $ class = get_class ( $ logger ) ; trigger_error ( "Logger $class was removed without being added." ) ; } return $ this ; }
Remove a logger by passing in its instance.

@param LoggerInterface $logger
@param bool $trigger
@return AggregateLogger
Remove a logger by passing in its instance .