protected function getHandlers(Application $app)
    {
        $handlers = [];

        // File Handler
        $file = Arr::path($this->config, 'file.path');

        if ($file) {
            $handlers[] = $this->getFileHandler($file);
            $handlers[] = $this->getFileExceptionHandler($file);
        }

        // Loggly Handler
        $enableLoggly = Arr::path($this->config, 'loggly.enable');

        if ($enableLoggly) {
            $handlers[] = $this->getLogglyHandler();
        }

        // Rollbar Handler
        $enableRollbar = Arr::path($this->config, 'rollbar.enable');

        if ($enableRollbar) {
            $handlers[] = $this->getRollbarHandler($app['environment']);
        }

        // Syslog Handler
        $syslogIdent = Arr::path($this->config, 'syslog.ident');

        if ($syslogIdent) {
            $handlers[] = $this->getSyslogHandler($syslogIdent);
        }

        return $handlers;
    }
protected function getHandlers(Application $app)
    {
        $handlers = [];

        // File Handler
        $file = Arr::path($this->config, 'file.path');

        if ($file) {
            $handlers[] = $this->getFileHandler($file);
            $handlers[] = $this->getFileExceptionHandler($file);
        }

        // Loggly Handler
        $enableLoggly = Arr::path($this->config, 'loggly.enable');

        if ($enableLoggly) {
            $handlers[] = $this->getLogglyHandler();
        }

        // Rollbar Handler
        $enableRollbar = Arr::path($this->config, 'rollbar.enable');

        if ($enableRollbar) {
            $handlers[] = $this->getRollbarHandler($app['environment']);
        }

        // Syslog Handler
        $syslogIdent = Arr::path($this->config, 'syslog.ident');

        if ($syslogIdent) {
            $handlers[] = $this->getSyslogHandler($syslogIdent);
        }

        return $handlers;
    }
protected function getHandlers ( Application $ app ) { $ handlers = [ ] ; // File Handler $ file = Arr :: path ( $ this -> config , 'file.path' ) ; if ( $ file ) { $ handlers [ ] = $ this -> getFileHandler ( $ file ) ; $ handlers [ ] = $ this -> getFileExceptionHandler ( $ file ) ; } // Loggly Handler $ enableLoggly = Arr :: path ( $ this -> config , 'loggly.enable' ) ; if ( $ enableLoggly ) { $ handlers [ ] = $ this -> getLogglyHandler ( ) ; } // Rollbar Handler $ enableRollbar = Arr :: path ( $ this -> config , 'rollbar.enable' ) ; if ( $ enableRollbar ) { $ handlers [ ] = $ this -> getRollbarHandler ( $ app [ 'environment' ] ) ; } // Syslog Handler $ syslogIdent = Arr :: path ( $ this -> config , 'syslog.ident' ) ; if ( $ syslogIdent ) { $ handlers [ ] = $ this -> getSyslogHandler ( $ syslogIdent ) ; } return $ handlers ; }
Get an array of logging handlers to use

@param  Application $app
@return  array
Get an array of logging handlers to use