|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Logs to Cube. More...
Inheritance diagram for Monolog\Handler\CubeHandler:
Collaboration diagram for Monolog\Handler\CubeHandler:Public Member Functions | ||||
| __construct ($url, $level=Logger::DEBUG, $bubble=true) | ||||
| Create a Cube handler. More... | ||||
Public Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
| handle (array $record) | ||||
{Handles a record.All records may be passed to this method, and the handler should discard those that it does not want to handle.The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
| ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
| __construct ($level=Logger::DEBUG, $bubble=true) | ||||
| isHandling (array $record) | ||||
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
| ||||
| handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
| close () | ||||
| Closes the handler. More... | ||||
| pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
| popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
| setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
| getFormatter () | ||||
{Gets the formatter.
| ||||
| setLevel ($level) | ||||
| Sets minimum logging level at which this handler will be triggered. More... | ||||
| getLevel () | ||||
| Gets minimum logging level at which this handler will be triggered. More... | ||||
| setBubble ($bubble) | ||||
| Sets the bubbling behavior. More... | ||||
| getBubble () | ||||
| Gets the bubbling behavior. More... | ||||
| __destruct () | ||||
| isHandling (array $record) | ||||
| Checks whether the given record will be handled by this handler. More... | ||||
| handle (array $record) | ||||
| Handles a record. More... | ||||
| handleBatch (array $records) | ||||
| Handles a set of records at once. More... | ||||
| pushProcessor ($callback) | ||||
| Adds a processor in the stack. More... | ||||
| popProcessor () | ||||
| Removes the processor on top of the stack and returns it. More... | ||||
| setFormatter (FormatterInterface $formatter) | ||||
| Sets the formatter. More... | ||||
| getFormatter () | ||||
| Gets the formatter. More... | ||||
Protected Member Functions | ||||
| connectUdp () | ||||
| Establish a connection to an UDP socket. More... | ||||
| connectHttp () | ||||
| Establish a connection to a http server. More... | ||||
| write (array $record) | ||||
{Writes the record down to the log of the implementing handler.
| ||||
Protected Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
| write (array $record) | ||||
| Writes the record down to the log of the implementing handler. More... | ||||
| processRecord (array $record) | ||||
| Processes a record. More... | ||||
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
| getDefaultFormatter () | ||||
| Gets the default formatter. More... | ||||
Private Member Functions | |
| writeUdp ($data) | |
| writeHttp ($data) | |
Private Attributes | |
| $udpConnection = null | |
| $httpConnection = null | |
| $scheme = null | |
| $host = null | |
| $port = null | |
| $acceptedSchemes = array('http', 'udp') | |
Additional Inherited Members | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
| $level = Logger::DEBUG | |
| $bubble = true | |
| $formatter | |
| $processors = array() | |
Logs to Cube.
Wan Chen kami@.nosp@m.kami.nosp@m.sama..nosp@m.me
Definition at line 22 of file CubeHandler.php.
| Monolog\Handler\CubeHandler::__construct | ( | $url, | |
$level = Logger::DEBUG, |
|||
$bubble = true |
|||
| ) |
Create a Cube handler.
| UnexpectedValueException | when given url is not a valid url. A valid url must consists of three parts : protocol://host:port Only valid protocol used by Cube are http and udp |
Definition at line 38 of file CubeHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\AbstractHandler\$level, and $url.
|
protected |
Establish a connection to a http server.
Definition at line 83 of file CubeHandler.php.
Referenced by Monolog\Handler\CubeHandler\writeHttp().
Here is the caller graph for this function:
|
protected |
Establish a connection to an UDP socket.
| LogicException | when unable to connect to the socket |
Definition at line 64 of file CubeHandler.php.
Referenced by Monolog\Handler\CubeHandler\writeUdp().
Here is the caller graph for this function:
|
protected |
{Writes the record down to the log of the implementing handler.
| array | $record |
Reimplemented from Monolog\Handler\AbstractProcessingHandler.
Definition at line 102 of file CubeHandler.php.
References $data, Monolog\Handler\CubeHandler\writeHttp(), and Monolog\Handler\CubeHandler\writeUdp().
Here is the call graph for this function:
|
private |
Definition at line 135 of file CubeHandler.php.
References $data, Monolog\Handler\CubeHandler\connectHttp(), and Monolog\Handler\Curl\Util\execute().
Referenced by Monolog\Handler\CubeHandler\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 126 of file CubeHandler.php.
References $data, and Monolog\Handler\CubeHandler\connectUdp().
Referenced by Monolog\Handler\CubeHandler\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 29 of file CubeHandler.php.
|
private |
Definition at line 27 of file CubeHandler.php.
|
private |
Definition at line 25 of file CubeHandler.php.
|
private |
Definition at line 28 of file CubeHandler.php.
|
private |
Definition at line 26 of file CubeHandler.php.
|
private |
Definition at line 24 of file CubeHandler.php.