protected function createCustomDriver(array $config)
    {
        $factory = is_callable($via = $config['via']) ? $via : $this->app->make($via);

        return $factory($config);
    }
protected function createCustomDriver(array $config)
    {
        $factory = is_callable($via = $config['via']) ? $via : $this->app->make($via);

        return $factory($config);
    }
protected function createCustomDriver ( array $ config ) { $ factory = is_callable ( $ via = $ config [ 'via' ] ) ? $ via : $ this -> app -> make ( $ via ) ; return $ factory ( $ config ) ; }
Create a custom log driver instance.

@param  array  $config
@return \Psr\Log\LoggerInterface
Create a custom log driver instance .