|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Stores to any socket - uses fsockopen() or pfsockopen(). More...
Inheritance diagram for Monolog\Handler\SocketHandler:
Collaboration diagram for Monolog\Handler\SocketHandler:Public Member Functions | ||||
| __construct ($connectionString, $level=Logger::DEBUG, $bubble=true) | ||||
| close () | ||||
| We will not close a PersistentSocket instance so it can be reused in other requests. More... | ||||
| closeSocket () | ||||
| Close socket, if open. More... | ||||
| setPersistent ($boolean) | ||||
| Set socket connection to nbe persistent. More... | ||||
| setConnectionTimeout ($seconds) | ||||
| Set connection timeout. More... | ||||
| setTimeout ($seconds) | ||||
| Set write timeout. More... | ||||
| getConnectionString () | ||||
| Get current connection string. More... | ||||
| isPersistent () | ||||
| Get persistent setting. More... | ||||
| getConnectionTimeout () | ||||
| Get current connection timeout setting. More... | ||||
| getTimeout () | ||||
| Get current in-transfer timeout. More... | ||||
| isConnected () | ||||
| Check to see if the socket is currently available. 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 | |
| write (array $record) | |
| Connect (if necessary) and write to the socket. More... | |
| pfsockopen () | |
| Wrapper to allow mocking. More... | |
| fsockopen () | |
| Wrapper to allow mocking. More... | |
| streamSetTimeout () | |
| Wrapper to allow mocking. More... | |
| fwrite ($data) | |
| Wrapper to allow mocking. More... | |
| streamGetMetadata () | |
| Wrapper to allow mocking. More... | |
| generateDataStream ($record) | |
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 | |
| validateTimeout ($value) | |
| connectIfNotConnected () | |
| connect () | |
| createSocketResource () | |
| setSocketTimeout () | |
| writeToSocket ($data) | |
Private Attributes | |
| $connectionString | |
| $connectionTimeout | |
| $resource | |
| $timeout = 0 | |
| $persistent = false | |
| $errno | |
| $errstr | |
Additional Inherited Members | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
| $level = Logger::DEBUG | |
| $bubble = true | |
| $formatter | |
| $processors = array() | |
Stores to any socket - uses fsockopen() or pfsockopen().
Definition at line 22 of file SocketHandler.php.
| Monolog\Handler\SocketHandler::__construct | ( | $connectionString, | |
$level = Logger::DEBUG, |
|||
$bubble = true |
|||
| ) |
| string | $connectionString | Socket connection string |
| integer | $level | The minimum logging level at which this handler will be triggered |
| Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
Reimplemented in Monolog\Handler\FlowdockHandler, and Monolog\Handler\FleepHookHandler.
Definition at line 37 of file SocketHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\SocketHandler\$connectionString, and Monolog\Handler\AbstractHandler\$level.
| Monolog\Handler\SocketHandler::close | ( | ) |
We will not close a PersistentSocket instance so it can be reused in other requests.
Reimplemented from Monolog\Handler\AbstractHandler.
Definition at line 62 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\closeSocket(), and Monolog\Handler\SocketHandler\isPersistent().
Here is the call graph for this function:| Monolog\Handler\SocketHandler::closeSocket | ( | ) |
Close socket, if open.
Definition at line 72 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\close(), Monolog\Handler\FleepHookHandler\write(), Monolog\Handler\FlowdockHandler\write(), Monolog\Handler\HipChatHandler\write(), Monolog\Handler\PushoverHandler\write(), and Monolog\Handler\SlackHandler\write().
Here is the caller graph for this function:
|
private |
Definition at line 235 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\createSocketResource(), and Monolog\Handler\SocketHandler\setSocketTimeout().
Referenced by Monolog\Handler\SocketHandler\connectIfNotConnected().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 222 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\connect(), and Monolog\Handler\SocketHandler\isConnected().
Referenced by Monolog\Handler\SocketHandler\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 241 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\$resource, Monolog\Handler\SocketHandler\fsockopen(), Monolog\Handler\SocketHandler\isPersistent(), and Monolog\Handler\SocketHandler\pfsockopen().
Referenced by Monolog\Handler\SocketHandler\connect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Wrapper to allow mocking.
Definition at line 180 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\fsockopen().
Referenced by Monolog\Handler\SocketHandler\createSocketResource(), and Monolog\Handler\SocketHandler\fsockopen().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Wrapper to allow mocking.
Definition at line 201 of file SocketHandler.php.
References $data, and Monolog\Handler\SocketHandler\fwrite().
Referenced by Monolog\Handler\SocketHandler\fwrite(), and Monolog\Handler\SocketHandler\writeToSocket().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in Monolog\Handler\FleepHookHandler, Monolog\Handler\FlowdockHandler, Monolog\Handler\HipChatHandler, Monolog\Handler\LogEntriesHandler, Monolog\Handler\PushoverHandler, and Monolog\Handler\SlackHandler.
Definition at line 230 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\write().
Here is the caller graph for this function:| Monolog\Handler\SocketHandler::getConnectionString | ( | ) |
Get current connection string.
Definition at line 121 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\$connectionString.
| Monolog\Handler\SocketHandler::getConnectionTimeout | ( | ) |
Get current connection timeout setting.
Definition at line 141 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\$connectionTimeout.
| Monolog\Handler\SocketHandler::getTimeout | ( | ) |
Get current in-transfer timeout.
Definition at line 151 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\$timeout.
| Monolog\Handler\SocketHandler::isConnected | ( | ) |
Check to see if the socket is currently available.
UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details.
Definition at line 163 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\connectIfNotConnected(), and Monolog\Handler\SocketHandler\writeToSocket().
Here is the caller graph for this function:| Monolog\Handler\SocketHandler::isPersistent | ( | ) |
Get persistent setting.
Definition at line 131 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\$persistent.
Referenced by Monolog\Handler\SocketHandler\close(), and Monolog\Handler\SocketHandler\createSocketResource().
Here is the caller graph for this function:
|
protected |
Wrapper to allow mocking.
Definition at line 172 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\pfsockopen().
Referenced by Monolog\Handler\SocketHandler\createSocketResource(), and Monolog\Handler\SocketHandler\pfsockopen().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Handler\SocketHandler::setConnectionTimeout | ( | $seconds | ) |
Set connection timeout.
Only has effect before we connect.
| float | $seconds |
Definition at line 97 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\validateTimeout().
Here is the call graph for this function:| Monolog\Handler\SocketHandler::setPersistent | ( | $boolean | ) |
Set socket connection to nbe persistent.
It only has effect before the connection is initiated.
| type | $boolean |
Definition at line 85 of file SocketHandler.php.
|
private |
Definition at line 254 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\streamSetTimeout().
Referenced by Monolog\Handler\SocketHandler\connect().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Handler\SocketHandler::setTimeout | ( | $seconds | ) |
Set write timeout.
Only has effect before we connect.
| float | $seconds |
Definition at line 110 of file SocketHandler.php.
References Monolog\Handler\SocketHandler\validateTimeout().
Here is the call graph for this function:
|
protected |
Wrapper to allow mocking.
Definition at line 209 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\writeToSocket().
Here is the caller graph for this function:
|
protected |
Wrapper to allow mocking.
Definition at line 190 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\setSocketTimeout().
Here is the caller graph for this function:
|
private |
Definition at line 214 of file SocketHandler.php.
References $ok.
Referenced by Monolog\Handler\SocketHandler\setConnectionTimeout(), and Monolog\Handler\SocketHandler\setTimeout().
Here is the caller graph for this function:
|
protected |
Connect (if necessary) and write to the socket.
| array | $record |
UnexpectedValueException
RuntimeException
Reimplemented from Monolog\Handler\AbstractProcessingHandler.
Reimplemented in Monolog\Handler\FleepHookHandler, Monolog\Handler\FlowdockHandler, Monolog\Handler\HipChatHandler, Monolog\Handler\PushoverHandler, and Monolog\Handler\SlackHandler.
Definition at line 52 of file SocketHandler.php.
References $data, Monolog\Handler\SocketHandler\connectIfNotConnected(), Monolog\Handler\SocketHandler\generateDataStream(), and Monolog\Handler\SocketHandler\writeToSocket().
Here is the call graph for this function:
|
private |
Definition at line 261 of file SocketHandler.php.
References $data, Monolog\Handler\SocketHandler\fwrite(), Monolog\Handler\SocketHandler\isConnected(), and Monolog\Handler\SocketHandler\streamGetMetadata().
Referenced by Monolog\Handler\SocketHandler\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 24 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\__construct(), Monolog\Handler\FleepHookHandler\__construct(), Monolog\Handler\HipChatHandler\__construct(), Monolog\Handler\PushoverHandler\__construct(), and Monolog\Handler\SocketHandler\getConnectionString().
|
private |
Definition at line 25 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\getConnectionTimeout().
|
private |
Definition at line 29 of file SocketHandler.php.
|
private |
Definition at line 30 of file SocketHandler.php.
|
private |
Definition at line 28 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\isPersistent().
|
private |
Definition at line 26 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\createSocketResource().
|
private |
Definition at line 27 of file SocketHandler.php.
Referenced by Monolog\Handler\SocketHandler\getTimeout().