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


PHP Zend_Log_Writer_Stream::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($url, $mode = null)
 {
     // Setting the default
     if (null === $mode) {
         $mode = 'a';
     }
     $this->_mode = $mode;
     $this->_url = $url;
     parent::__construct($url, $mode);
     $this->setFormatter(new Zend_Log_Formatter_Simple("%message%\n"));
 }
開發者ID:xiaoguizhidao,項目名稱:koala-framework,代碼行數:11,代碼來源:Stream.php

示例2: __construct

 /**
  * Store alerts for logs into system.log and exception.log
  *
  * @param array|string|resource $streamOrUrl
  *            Stream or URL to open as a stream
  * @param string|null $mode
  *            Mode, only applicable if a URL is given
  * @return void
  * @throws Zend_Log_Exception
  */
 public function __construct($streamOrUrl, $mode = null)
 {
     $logFiles = explode(PHP_EOL, Mage::getStoreConfig('extensions_store_storealerts/configuration/log_files'));
     $logFiles[] = Mage::getStoreConfig('dev/log/file');
     $logFiles[] = Mage::getStoreConfig('dev/log/exception_file');
     $logFile = basename($streamOrUrl);
     if (in_array($logFile, $logFiles)) {
         $this->_log = true;
     }
     parent::__construct($streamOrUrl, $mode);
 }
開發者ID:ExtensionsStore,項目名稱:StoreAlerts,代碼行數:21,代碼來源:Stream.php

示例3: __construct

 public function __construct($streamOrUrl = null, $mode = null)
 {
     if ($streamOrUrl) {
         parent::__construct($streamOrUrl, $mode);
     }
 }
開發者ID:brianhillz0r,項目名稱:Magento-Realtime-Logger,代碼行數:6,代碼來源:Logger.php

示例4: __construct

 public function __construct($streamOrUrl, $mode = null, $filterPriority = \Zend_Log::ERR)
 {
     parent::__construct($streamOrUrl, $mode = null);
     $this->setFilterPriority($filterPriority);
 }
開發者ID:Gerhard13,項目名稱:pimcore,代碼行數:5,代碼來源:Stream.php

示例5: __construct

 /**
  * overload parent::__construct
  *
  * @param Stream $logFile
  * @param string|null $mode
  */
 public function __construct($logFile, $mode = NULL)
 {
     $this->_logfile = $logFile;
     return parent::__construct($logFile, $mode);
 }
開發者ID:AndrewFelipe,項目名稱:Magento-Monitoring,代碼行數:11,代碼來源:Log.php

示例6: __construct

 public function __construct($streamOrUrl, $mode = null)
 {
     $streamOrUrl = $streamOrUrl ?: $this->_getConfig()->getLogFile();
     parent::__construct($streamOrUrl, $mode);
     $this->_formatter = $this->_getNewFormatter();
 }
開發者ID:kojiromike,項目名稱:magento-log,代碼行數:6,代碼來源:Stream.php

示例7: __construct

 public function __construct($streamOrUrl, $mode = NULL)
 {
     self::$_ilfp = $streamOrUrl;
     return parent::__construct($streamOrUrl, $mode);
 }
開發者ID:jeremygres,項目名稱:Inchoo_Logger,代碼行數:5,代碼來源:Stream.php


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