當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Writer::useSyslog方法代碼示例

本文整理匯總了PHP中Illuminate\Log\Writer::useSyslog方法的典型用法代碼示例。如果您正苦於以下問題:PHP Writer::useSyslog方法的具體用法?PHP Writer::useSyslog怎麽用?PHP Writer::useSyslog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Log\Writer的用法示例。


在下文中一共展示了Writer::useSyslog方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: useSyslog

 /**
  * 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);
 }
開發者ID:satriashp,項目名稱:tour,代碼行數:12,代碼來源:_ide_helper.php

示例2: configureSyslogHandler

 /**
  * 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');
 }
開發者ID:sapwoo,項目名稱:portfolio,代碼行數:11,代碼來源:ConfigureLogging.php

示例3: configureSyslogHandler

 /**
  * 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'));
 }
開發者ID:ancchaimongkon,項目名稱:timegrid,代碼行數:16,代碼來源:ConfigureLogging.php

示例4: configureSyslogHandler

 /**
  * @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'));
 }
開發者ID:notadd,項目名稱:framework,代碼行數:10,代碼來源:ConfigureLogging.php

示例5: configureSyslogHandler

 /**
  * Configure the Monolog handlers for the application.
  *
  * @param  \Illuminate\Log\Writer  $log
  * @return void
  */
 protected function configureSyslogHandler(Writer $log)
 {
     $log->useSyslog('laravel', $this->logLevel());
 }
開發者ID:bryanashley,項目名稱:framework,代碼行數:10,代碼來源:LogServiceProvider.php


注:本文中的Illuminate\Log\Writer::useSyslog方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。