original_string: protected function createCustomDriver(array $config)
      {
          $factory = is_callable($via = $config['via']) ? $via : $this->app->make($via);
  
          return $factory($config);
      }
code: protected function createCustomDriver(array $config)
      {
          $factory = is_callable($via = $config['via']) ? $via : $this->app->make($via);
  
          return $factory($config);
      }
code_tokens: protected function createCustomDriver ( array $ config ) { $ factory = is_callable ( $ via = $ config [ 'via' ] ) ? $ via : $ this -> app -> make ( $ via ) ; return $ factory ( $ config ) ; }
docstring: Create a custom log driver instance.
  
  @param  array  $config
  @return \Psr\Log\LoggerInterface
docstring_tokens: Create a custom log driver instance .