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

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

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

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

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

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