本文整理汇总了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);
}
示例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);
}
示例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();
}