Exemplo n.º 1
0
 /**
  * Register a Syslog handler.
  *
  * @param string $name
  * @param string $level
  * @return \Psr\Log\LoggerInterface 
  * @static 
  */
 public static function useSyslog($name = 'laravel', $level = 'debug')
 {
     return \Illuminate\Log\Writer::useSyslog($name, $level);
 }
Exemplo n.º 2
0
 /**
  * Configure the Monolog handlers for the application.
  *
  * @param \Illuminate\Contracts\Foundation\Application $app        	
  * @param \Illuminate\Log\Writer $log        	
  * @return void
  */
 protected function configureSyslogHandler(Application $app, Writer $log)
 {
     $log->useSyslog('laravel');
 }
Exemplo n.º 3
0
 /**
  * OVERRIDE PARENT CLASS
  * Configure the Monolog handlers for the application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @param  \Illuminate\Log\Writer  $log
  * @return void
  */
 protected function configureSyslogHandler(Application $app, Writer $log)
 {
     // META: This piece raises lint warning:
     //       "Avoid unused parameters such as '$app'"
     //       But $app is not needed in this case and the method signature
     //       still respects the overrided method signature.
     $log->useSyslog(env('SYSLOG_APPNAME', 'laravel'));
 }
Exemplo n.º 4
0
 /**
  * @param \Illuminate\Contracts\Foundation\Application|\Notadd\Foundation\Application $app
  * @param \Illuminate\Log\Writer                                                      $log
  *
  * @return void
  */
 protected function configureSyslogHandler(Application $app, Writer $log)
 {
     $log->useSyslog('laravel', $app->make('config')->get('app.log_level', 'debug'));
 }
Exemplo n.º 5
0
 /**
  * OVERRIDE PARENT CLASS
  * Configure the Monolog handlers for the application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @param  \Illuminate\Log\Writer  $log
  * @return void
  */
 protected function configureSyslogHandler(Application $app, Writer $log)
 {
     $log->useSyslog(env('SYSLOG_APPNAME', 'laravel'));
 }
Exemplo n.º 6
0
 /**
  * Configure the Monolog handlers for the application.
  *
  * @param  \Illuminate\Log\Writer  $log
  * @return void
  */
 protected function configureSyslogHandler(Writer $log)
 {
     $log->useSyslog('laravel', $this->logLevel());
 }