public function addBackend(Backend\BackendInterface $backend)
    {
        if ($this->psrCompatibleLoggerWasInjected) {
            throw new Exception('A PSR-3 logger was injected so adding backends is not possible. Create a new instance.', 1515343013004);
        }

        $this->backends->attach($backend);
    }
public function addBackend(Backend\BackendInterface $backend)
    {
        if ($this->psrCompatibleLoggerWasInjected) {
            throw new Exception('A PSR-3 logger was injected so adding backends is not possible. Create a new instance.', 1515343013004);
        }

        $this->backends->attach($backend);
    }
public function addBackend ( Backend \ BackendInterface $ backend ) { if ( $ this -> psrCompatibleLoggerWasInjected ) { throw new Exception ( 'A PSR-3 logger was injected so adding backends is not possible. Create a new instance.' , 1515343013004 ) ; } $ this -> backends -> attach ( $ backend ) ; }
Adds the backend to which the logger sends the logging data

@param Backend\BackendInterface $backend A backend implementation
@return void
@api
@throws Exception
Adds the backend to which the logger sends the logging data