public function config(array $config = []):AbstractHandler
    {
        $config = $config + ['output' => '/tmp', 'fileName' => 'log'];
        $this->output = rtrim($config['output'], '/').'/'.$config['fileName'].static::LOG_EXT;
        $this->validateOutput();
        return $this;
    }