diff options
author | Johan Björk <johanimon@gmail.com> | 2014-08-28 00:10:31 +0200 |
---|---|---|
committer | Johan Björk <johanimon@gmail.com> | 2014-09-03 12:09:06 +0200 |
commit | dadb1fad2ab4c09a919fa65bb0fd4f89680d97b9 (patch) | |
tree | 2f285107f19dac99c825b774635795c76f8aa579 /apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php | |
parent | cb0da1178b0872988582ee5fbf6b5b1cb5ea2527 (diff) | |
download | nextcloud-server-dadb1fad2ab4c09a919fa65bb0fd4f89680d97b9.tar.gz nextcloud-server-dadb1fad2ab4c09a919fa65bb0fd4f89680d97b9.zip |
Update AWS sdk to 2.6.15
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php')
-rw-r--r-- | apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php b/apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php deleted file mode 100644 index 085d9e17198..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Monolog/Handler/TestHandler.php +++ /dev/null @@ -1,140 +0,0 @@ -<?php - -/* - * This file is part of the Monolog package. - * - * (c) Jordi Boggiano <j.boggiano@seld.be> - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Logger; - -/** - * Used for testing purposes. - * - * It records all records and gives you access to them for verification. - * - * @author Jordi Boggiano <j.boggiano@seld.be> - */ -class TestHandler extends AbstractProcessingHandler -{ - protected $records = array(); - protected $recordsByLevel = array(); - - public function getRecords() - { - return $this->records; - } - - public function hasEmergency($record) - { - return $this->hasRecord($record, Logger::EMERGENCY); - } - - public function hasAlert($record) - { - return $this->hasRecord($record, Logger::ALERT); - } - - public function hasCritical($record) - { - return $this->hasRecord($record, Logger::CRITICAL); - } - - public function hasError($record) - { - return $this->hasRecord($record, Logger::ERROR); - } - - public function hasWarning($record) - { - return $this->hasRecord($record, Logger::WARNING); - } - - public function hasNotice($record) - { - return $this->hasRecord($record, Logger::NOTICE); - } - - public function hasInfo($record) - { - return $this->hasRecord($record, Logger::INFO); - } - - public function hasDebug($record) - { - return $this->hasRecord($record, Logger::DEBUG); - } - - public function hasEmergencyRecords() - { - return isset($this->recordsByLevel[Logger::EMERGENCY]); - } - - public function hasAlertRecords() - { - return isset($this->recordsByLevel[Logger::ALERT]); - } - - public function hasCriticalRecords() - { - return isset($this->recordsByLevel[Logger::CRITICAL]); - } - - public function hasErrorRecords() - { - return isset($this->recordsByLevel[Logger::ERROR]); - } - - public function hasWarningRecords() - { - return isset($this->recordsByLevel[Logger::WARNING]); - } - - public function hasNoticeRecords() - { - return isset($this->recordsByLevel[Logger::NOTICE]); - } - - public function hasInfoRecords() - { - return isset($this->recordsByLevel[Logger::INFO]); - } - - public function hasDebugRecords() - { - return isset($this->recordsByLevel[Logger::DEBUG]); - } - - protected function hasRecord($record, $level) - { - if (!isset($this->recordsByLevel[$level])) { - return false; - } - - if (is_array($record)) { - $record = $record['message']; - } - - foreach ($this->recordsByLevel[$level] as $rec) { - if ($rec['message'] === $record) { - return true; - } - } - - return false; - } - - /** - * {@inheritdoc} - */ - protected function write(array $record) - { - $this->recordsByLevel[$record['level']][] = $record; - $this->records[] = $record; - } -} |