src/Phossa2/Logger/Traits/ExtendedLoggerTrait.php
protected function runHandlers(LogEntryInterface $logEntry)
    {
        // get related handlers
        $queue = $this->getCallables('handlers', $logEntry->getChannel());

        // loop thru these handlers
        foreach ($queue as $data) {
            // stopped ?
            if ($logEntry->isPropagationStopped()) {
                break;
            }

            // run handler only if level allowed
            if (LogLevel::$levels[$logEntry->getLevel()] >=
                LogLevel::$levels[$data['extra']]) {
                call_user_func($data['data'], $logEntry);
            }
        }

        return $this;
    }
protected function runHandlers(LogEntryInterface $logEntry)
    {
        // get related handlers
        $queue = $this->getCallables('handlers', $logEntry->getChannel());

        // loop thru these handlers
        foreach ($queue as $data) {
            // stopped ?
            if ($logEntry->isPropagationStopped()) {
                break;
            }

            // run handler only if level allowed
            if (LogLevel::$levels[$logEntry->getLevel()] >=
                LogLevel::$levels[$data['extra']]) {
                call_user_func($data['data'], $logEntry);
            }
        }

        return $this;
    }
protected function runHandlers ( LogEntryInterface $ logEntry ) { // get related handlers $ queue = $ this -> getCallables ( 'handlers' , $ logEntry -> getChannel ( ) ) ; // loop thru these handlers foreach ( $ queue as $ data ) { // stopped ? if ( $ logEntry -> isPropagationStopped ( ) ) { break ; } // run handler only if level allowed if ( LogLevel :: $ levels [ $ logEntry -> getLevel ( ) ] >= LogLevel :: $ levels [ $ data [ 'extra' ] ] ) { call_user_func ( $ data [ 'data' ] , $ logEntry ) ; } } return $ this ; }
Execute related handlers on the log entry

@param  LogEntryInterface $logEntry
@return $this
@access protected
@since  2.0.1 added level checking here
Execute related handlers on the log entry