ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
12namespace Monolog\Handler;
13
16use Doctrine\CouchDB\CouchDBClient;
17
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}
Normalizes incoming records to remove objects/resources so it's easier to dump to various targets.
Base Handler class providing the Handler structure.
CouchDB handler for Doctrine CouchDB ODM.
__construct(CouchDBClient $client, $level=Logger::DEBUG, $bubble=true)
getDefaultFormatter()
Gets the default formatter.
write(array $record)
Writes the record down to the log of the implementing handler.void
Monolog log channel.
Definition: Logger.php:28
const DEBUG
Detailed debug information.
Definition: Logger.php:32