ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Sends notifications through the Flowdock push API. More...
Public Member Functions | ||||
__construct ($apiToken, $level=Logger::DEBUG, $bubble=true) | ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
Public Member Functions inherited from Monolog\Handler\SocketHandler | ||||
__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 ($persistent) | ||||
Set socket connection to nbe persistent. More... | ||||
setConnectionTimeout ($seconds) | ||||
Set connection timeout. More... | ||||
setTimeout ($seconds) | ||||
Set write timeout. More... | ||||
setWritingTimeout ($seconds) | ||||
Set writing 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... | ||||
getWritingTimeout () | ||||
Get current local writing 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 () | ||||
Protected Member Functions | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
write (array $record) | |
{} More... | |
generateDataStream ($record) | |
{} More... | |
Protected Member Functions inherited from Monolog\Handler\SocketHandler | |
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) | |
getResource () | |
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... | |
Protected Attributes | |
$apiToken | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Private Member Functions | |
buildContent ($record) | |
Builds the body of API call. More... | |
buildHeader ($content) | |
Builds the header of the API Call. More... | |
Sends notifications through the Flowdock push API.
This must be configured with a FlowdockFormatter instance via setFormatter()
Notes: API token - Flowdock API token
Definition at line 29 of file FlowdockHandler.php.
Monolog\Handler\FlowdockHandler::__construct | ( | $apiToken, | |
$level = Logger::DEBUG , |
|||
$bubble = true |
|||
) |
string | $apiToken | |
bool | int | $level | The minimum logging level at which this handler will be triggered |
bool | $bubble | Whether the messages that are handled can bubble up the stack or not |
MissingExtensionException | if OpenSSL is missing |
Definition at line 43 of file FlowdockHandler.php.
References Monolog\Handler\FlowdockHandler\$apiToken, Monolog\Handler\AbstractHandler\$bubble, and Monolog\Handler\AbstractHandler\$level.
|
private |
Builds the body of API call.
array | $record |
Definition at line 106 of file FlowdockHandler.php.
Referenced by Monolog\Handler\FlowdockHandler\generateDataStream().
|
private |
Builds the header of the API Call.
string | $content |
Definition at line 117 of file FlowdockHandler.php.
References $header.
Referenced by Monolog\Handler\FlowdockHandler\generateDataStream().
|
protected |
{}
array | $record |
Definition at line 93 of file FlowdockHandler.php.
References Monolog\Handler\FlowdockHandler\buildContent(), and Monolog\Handler\FlowdockHandler\buildHeader().
|
protected |
Gets the default formatter.
Definition at line 70 of file FlowdockHandler.php.
Monolog\Handler\FlowdockHandler::setFormatter | ( | FormatterInterface | $formatter | ) |
{Sets the formatter.
FormatterInterface | $formatter |
Implements Monolog\Handler\HandlerInterface.
Definition at line 56 of file FlowdockHandler.php.
|
protected |
{}
array | $record |
Definition at line 80 of file FlowdockHandler.php.
References Monolog\Handler\SocketHandler\closeSocket().
|
protected |
Definition at line 34 of file FlowdockHandler.php.
Referenced by Monolog\Handler\FlowdockHandler\__construct().