当前位置: 首页>>代码示例>>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;未经允许,请勿转载。