src/Charcoal/App/Config/LoggerConfig.php
public function addProcessor(array $processor, $key = null)
    {
        if (!isset($processor['type'])) {
            throw new InvalidArgumentException(
                'Processor type is required.'
            );
        }

        if (!is_string($key)) {
            $this->processors[] = $processor;
        } else {
            $this->processors[$key] = $processor;
        }

        return $this;
    }
public function addProcessor(array $processor, $key = null)
    {
        if (!isset($processor['type'])) {
            throw new InvalidArgumentException(
                'Processor type is required.'
            );
        }

        if (!is_string($key)) {
            $this->processors[] = $processor;
        } else {
            $this->processors[$key] = $processor;
        }

        return $this;
    }
public function addProcessor ( array $ processor , $ key = null ) { if ( ! isset ( $ processor [ 'type' ] ) ) { throw new InvalidArgumentException ( 'Processor type is required.' ) ; } if ( ! is_string ( $ key ) ) { $ this -> processors [ ] = $ processor ; } else { $ this -> processors [ $ key ] = $ processor ; } return $ this ; }
Add a record processor to use.

@param  array       $processor The record processor structure.
@param  string|null $key       The processor's key.
@throws InvalidArgumentException If the processor is invalid.
@return self
Add a record processor to use .