original_string: protected function registerLogs()
      {
          $this->app->singleton('logs', function($app)
          {
              $config = $this->app->config->get('logs');
  
              if ($config['adapter'] == 'loggly') {
  
                  return new Adapters\Loggly();
  
              } elseif ($config['adapter'] == 'stackdriver') {
  
                  return new Adapters\Stackdriver();
  
              } else {
  
                  return new Adapters\Monolog();
  
              }
              
          });
      }
code: protected function registerLogs()
      {
          $this->app->singleton('logs', function($app)
          {
              $config = $this->app->config->get('logs');
  
              if ($config['adapter'] == 'loggly') {
  
                  return new Adapters\Loggly();
  
              } elseif ($config['adapter'] == 'stackdriver') {
  
                  return new Adapters\Stackdriver();
  
              } else {
  
                  return new Adapters\Monolog();
  
              }
              
          });
      }
code_tokens: protected function registerLogs ( ) { $ this -> app -> singleton ( 'logs' , function ( $ app ) { $ config = $ this -> app -> config -> get ( 'logs' ) ; if ( $ config [ 'adapter' ] == 'loggly' ) { return new Adapters \ Loggly ( ) ; } elseif ( $ config [ 'adapter' ] == 'stackdriver' ) { return new Adapters \ Stackdriver ( ) ; } else { return new Adapters \ Monolog ( ) ; } } ) ; }
docstring: Register logs.
  
  @return void
docstring_tokens: Register logs .