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();

            }
            
        });
    }
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();

            }
            
        });
    }
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 ( ) ; } } ) ; }
Register logs.

@return void
Register logs .