ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Logs to Cube. More...
Public Member Functions | ||||
__construct ($url, $level=Logger::DEBUG, $bubble=true) | ||||
Create a Cube handler. More... | ||||
![]() | ||||
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.
| ||||
![]() | ||||
__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.
| ||||
![]() | ||||
write (array $record) | ||||
Writes the record down to the log of the implementing handler. More... | ||||
processRecord (array $record) | ||||
Processes a record. More... | ||||
![]() | ||||
getDefaultFormatter () | ||||
Gets the default formatter. More... | ||||
Private Member Functions | |
writeUdp ($data) | |
writeHttp ($data) | |
Private Attributes | |
$udpConnection | |
$httpConnection | |
$scheme | |
$host | |
$port | |
$acceptedSchemes = array('http', 'udp') | |
Additional Inherited Members | |
![]() | |
$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 consist of three parts : protocol://host:port Only valid protocols 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.
LogicException when no curl extension
Definition at line 85 of file CubeHandler.php.
Referenced by Monolog\Handler\CubeHandler\writeHttp().
|
protected |
Establish a connection to an UDP socket.
LogicException when unable to connect to the socket
MissingExtensionException | when there is no socket extension |
Definition at line 65 of file CubeHandler.php.
Referenced by Monolog\Handler\CubeHandler\writeUdp().
|
protected |
{Writes the record down to the log of the implementing handler.
array | $record |
Reimplemented from Monolog\Handler\AbstractProcessingHandler.
Definition at line 104 of file CubeHandler.php.
References $data, Monolog\Handler\CubeHandler\writeHttp(), and Monolog\Handler\CubeHandler\writeUdp().
|
private |
Definition at line 137 of file CubeHandler.php.
References $data, Monolog\Handler\CubeHandler\connectHttp(), and Monolog\Handler\Curl\Util\execute().
Referenced by Monolog\Handler\CubeHandler\write().
|
private |
Definition at line 128 of file CubeHandler.php.
References $data, and Monolog\Handler\CubeHandler\connectUdp().
Referenced by Monolog\Handler\CubeHandler\write().
|
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.