当前位置: 首页>>代码示例>>PHP>>正文


PHP obj::pushHandler方法代码示例

本文整理汇总了PHP中obj::pushHandler方法的典型用法代码示例。如果您正苦于以下问题:PHP obj::pushHandler方法的具体用法?PHP obj::pushHandler怎么用?PHP obj::pushHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在obj的用法示例。


在下文中一共展示了obj::pushHandler方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Create a new Metadata Instance
  * @param array $settings configuration settings.
  */
 public function __construct($settings)
 {
     $this->settings = $settings;
     // Add logging to metadata parsers
     $this->pathToLog = $settings['LOGGING']['path_to_log'];
     // Create log channel for metadataparsers
     $this->log = new \Monolog\Logger('metadataparsers');
     $this->logStreamHandler = new \Monolog\Handler\StreamHandler($this->pathToLog, Logger::WARNING);
     $this->log->pushHandler($this->logStreamHandler);
 }
开发者ID:DiegoPino,项目名称:mik,代码行数:14,代码来源:MetadataParser.php

示例2: __construct

 /**
  * Create a new FileManipulator Instance
  * @param array $settings configuration settings.
  */
 public function __construct($settings)
 {
     // This path is relative to mik.
     $this->schema_location = 'extras/scripts/mods-3-5.xsd';
     $this->settings = $settings;
     // Add logging to metadata parsers
     $this->pathToLog = $settings['LOGGING']['path_to_log'];
     // Create log channel for metadataparsers
     $this->log = new \Monolog\Logger('filemanipulators');
     $this->logStreamHandler = new \Monolog\Handler\StreamHandler($this->pathToLog, Logger::INFO);
     $this->log->pushHandler($this->logStreamHandler);
 }
开发者ID:umlso-labs,项目名称:mik,代码行数:16,代码来源:ValidateMods.php

示例3: __construct

 public function __construct()
 {
     $this->connection = new Connection();
     $this->Account = new Account();
     $this->Security = new Security();
     $this->AssetClass = new AssetClass();
     $this->AssetSubclass = new AssetSubclass();
     $this->Transaction = new Transaction();
     $this->Client = new Client();
     $this->Ria = new Ria();
     $this->log = new Logger('filesys');
     $this->log->pushHandler(new StreamHandler(__DIR__ . '/../logs/rebalancer.log', Logger::WARNING));
     $this->connection = new Connection();
     $this->db = $this->connection->getMySqlDB();
 }
开发者ID:junjinZ,项目名称:wealthbot,代码行数:15,代码来源:rebalancer.php


注:本文中的obj::pushHandler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。