public function setLogger(LoggerInterface $logger)
    {
        if (!$logger instanceof SplObserver) {
            throw new Doozr_Logging_Exception(
                sprintf('Please implement SplObserver before trying to attach your logging.')
            );
        }

        $this->attach($logger);

        return null;
    }
public function setLogger(LoggerInterface $logger)
    {
        if (!$logger instanceof SplObserver) {
            throw new Doozr_Logging_Exception(
                sprintf('Please implement SplObserver before trying to attach your logging.')
            );
        }

        $this->attach($logger);

        return null;
    }
public function setLogger ( LoggerInterface $ logger ) { if ( ! $ logger instanceof SplObserver ) { throw new Doozr_Logging_Exception ( sprintf ( 'Please implement SplObserver before trying to attach your logging.' ) ) ; } $ this -> attach ( $ logger ) ; return null ; }
Setter for logging.

@param LoggerInterface $logger The logging to attach

@author Benjamin Carl <opensource@clickalicious.de>

@throws Doozr_Logging_Exception

@return null
Setter for logging .