ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Sends logs to Fleep.io using Webhook integrations. More...
Public Member Functions | ||||
__construct ($token, $level=Logger::DEBUG, $bubble=true) | ||||
Construct a new Fleep.io Handler. More... | ||||
write (array $record) | ||||
Handles a log record. More... | ||||
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... | ||||
setChunkSize ($bytes) | ||||
Set chunk size. 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... | ||||
getChunkSize () | ||||
Get current chunk size. 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 () | ||||
reset () | ||||
Data Fields | |
const | FLEEP_HOST = 'fleep.io' |
const | FLEEP_HOOK_URI = '/hook/' |
Protected Member Functions | |
getDefaultFormatter () | |
Returns the default formatter to use with this handler. 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... | |
streamSetChunkSize () | |
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 | |
$token | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Private Member Functions | |
buildHeader ($content) | |
Builds the header of the API Call. More... | |
buildContent ($record) | |
Builds the body of API call. More... | |
Sends logs to Fleep.io using Webhook integrations.
You'll need a Fleep.io account to use this handler.
Definition at line 25 of file FleepHookHandler.php.
Monolog\Handler\FleepHookHandler::__construct | ( | $token, | |
$level = Logger::DEBUG , |
|||
$bubble = true |
|||
) |
Construct a new Fleep.io Handler.
For instructions on how to create a new web hook in your conversations see https://fleep.io/integrations/webhooks/
string | $token | Webhook token |
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 |
Definition at line 47 of file FleepHookHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\SocketHandler\$connectionString, Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\FleepHookHandler\$token.
|
private |
Builds the body of API call.
array | $record |
Definition at line 118 of file FleepHookHandler.php.
Referenced by Monolog\Handler\FleepHookHandler\generateDataStream().
|
private |
Builds the header of the API Call.
string | $content |
Definition at line 101 of file FleepHookHandler.php.
References $header.
Referenced by Monolog\Handler\FleepHookHandler\generateDataStream().
|
protected |
{}
array | $record |
Definition at line 88 of file FleepHookHandler.php.
References Monolog\Handler\FleepHookHandler\buildContent(), and Monolog\Handler\FleepHookHandler\buildHeader().
|
protected |
Returns the default formatter to use with this handler.
Overloaded to remove empty context and extra arrays from the end of the log message.
Definition at line 66 of file FleepHookHandler.php.
Monolog\Handler\FleepHookHandler::write | ( | array | $record | ) |
Handles a log record.
array | $record |
Definition at line 76 of file FleepHookHandler.php.
References Monolog\Handler\SocketHandler\closeSocket(), and Sabre\VObject\write().
|
protected |
Definition at line 34 of file FleepHookHandler.php.
Referenced by Monolog\Handler\FleepHookHandler\__construct().
const Monolog\Handler\FleepHookHandler::FLEEP_HOOK_URI = '/hook/' |
Definition at line 29 of file FleepHookHandler.php.
const Monolog\Handler\FleepHookHandler::FLEEP_HOST = 'fleep.io' |
Definition at line 27 of file FleepHookHandler.php.
Referenced by Monolog\Handler\FleepHookHandlerTest\testConnectionStringisConstructedCorrectly().