public function addLogProcessor($type)
    {
        switch ($type) {
            case 'web':
                $this->pushProcessor(new WebProcessor());
                break;

            case 'intro':
            case 'introspection':
                $this->pushProcessor(new IntrospectionProcessor());
                break;

            default:
                throw new \Exception('Unknown Log Processor', 1);
                break;
        }
    }
public function addLogProcessor($type)
    {
        switch ($type) {
            case 'web':
                $this->pushProcessor(new WebProcessor());
                break;

            case 'intro':
            case 'introspection':
                $this->pushProcessor(new IntrospectionProcessor());
                break;

            default:
                throw new \Exception('Unknown Log Processor', 1);
                break;
        }
    }
public function addLogProcessor ( $ type ) { switch ( $ type ) { case 'web' : $ this -> pushProcessor ( new WebProcessor ( ) ) ; break ; case 'intro' : case 'introspection' : $ this -> pushProcessor ( new IntrospectionProcessor ( ) ) ; break ; default : throw new \ Exception ( 'Unknown Log Processor' , 1 ) ; break ; } }
Wraps the creation of log processors so they can be created in a standard way.

@param string $type Type of log processor to add

@throws \Exception
Wraps the creation of log processors so they can be created in a standard way .