ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
DoctrineCouchDBHandler.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of the Monolog package.
5
*
6
* (c) Jordi Boggiano <j.boggiano@seld.be>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Monolog\Handler
;
13
14
use
Monolog\Logger
;
15
use
Monolog\Formatter\NormalizerFormatter
;
16
use
Doctrine\CouchDB\CouchDBClient
;
17
23
class
DoctrineCouchDBHandler
extends
AbstractProcessingHandler
24
{
25
private
$client
;
26
27
public
function
__construct
(CouchDBClient
$client
,
$level
=
Logger::DEBUG
,
$bubble
=
true
)
28
{
29
$this->client =
$client
;
30
parent::__construct(
$level
,
$bubble
);
31
}
32
36
protected
function
write
(array $record)
37
{
38
$this->client->postDocument($record[
'formatted'
]);
39
}
40
41
protected
function
getDefaultFormatter
()
42
{
43
return
new
NormalizerFormatter
;
44
}
45
}
Monolog\Handler
Definition:
AbstractHandler.php:12
Monolog\Logger\DEBUG
const DEBUG
Detailed debug information.
Definition:
Logger.php:33
Monolog\Handler\DoctrineCouchDBHandler\getDefaultFormatter
getDefaultFormatter()
Definition:
DoctrineCouchDBHandler.php:41
Monolog\Handler\AbstractProcessingHandler
Base Handler class providing the Handler structure.
Definition:
AbstractProcessingHandler.php:24
Monolog\Handler\DoctrineCouchDBHandler\$client
$client
Definition:
DoctrineCouchDBHandler.php:25
Monolog\Handler\DoctrineCouchDBHandler\__construct
__construct(CouchDBClient $client, $level=Logger::DEBUG, $bubble=true)
Definition:
DoctrineCouchDBHandler.php:27
Logger
NormalizerFormatter
CouchDBClient
Monolog\Formatter\NormalizerFormatter
Normalizes incoming records to remove objects/resources so it's easier to dump to various targets...
Definition:
NormalizerFormatter.php:22
Monolog\Handler\AbstractHandler\$level
$level
Definition:
AbstractHandler.php:26
Monolog\Handler\DoctrineCouchDBHandler
CouchDB handler for Doctrine CouchDB ODM.
Definition:
DoctrineCouchDBHandler.php:23
php
Monolog\Handler\AbstractHandler\$bubble
$bubble
Definition:
AbstractHandler.php:27
Monolog\Handler\DoctrineCouchDBHandler\write
write(array $record)
Definition:
DoctrineCouchDBHandler.php:36
libs
composer
vendor
monolog
monolog
src
Monolog
Handler
DoctrineCouchDBHandler.php
Generated on Thu Jan 16 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)