ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server using raven-php (https://github.com/getsentry/raven-php) More...
Public Member Functions | ||||
__construct (Raven_Client $ravenClient, $level=Logger::DEBUG, $bubble=true) | ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
setBatchFormatter (FormatterInterface $formatter) | ||||
Sets the formatter for the logs generated by handleBatch(). More... | ||||
getBatchFormatter () | ||||
Gets the formatter for the logs generated by handleBatch(). More... | ||||
setRelease ($value) | ||||
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 | |
write (array $record) | |
{} More... | |
getDefaultFormatter () | |
getDefaultBatchFormatter () | |
Gets the default formatter for the logs generated by handleBatch(). More... | |
getExtraParameters () | |
Gets extra parameters supported by Raven that can be found in "extra" and "context". More... | |
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 | |
$ravenClient | |
$batchFormatter | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Private Attributes | |
$logLevels | |
Translates Monolog log levels to Raven log levels. More... | |
$release | |
Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server using raven-php (https://github.com/getsentry/raven-php)
Definition at line 25 of file RavenHandler.php.
Monolog\Handler\RavenHandler::__construct | ( | Raven_Client | $ravenClient, |
$level = Logger::DEBUG , |
|||
$bubble = true |
|||
) |
Raven_Client | $ravenClient | |
int | $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 |
Definition at line 62 of file RavenHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\RavenHandler\$ravenClient.
Monolog\Handler\RavenHandler::getBatchFormatter | ( | ) |
Gets the formatter for the logs generated by handleBatch().
Definition at line 122 of file RavenHandler.php.
References Monolog\Handler\RavenHandler\$batchFormatter, and Monolog\Handler\RavenHandler\getDefaultBatchFormatter().
Referenced by Monolog\Handler\RavenHandler\handleBatch().
|
protected |
Gets the default formatter for the logs generated by handleBatch().
Definition at line 207 of file RavenHandler.php.
Referenced by Monolog\Handler\RavenHandler\getBatchFormatter().
|
protected |
Definition at line 197 of file RavenHandler.php.
|
protected |
Gets extra parameters supported by Raven that can be found in "extra" and "context".
Definition at line 217 of file RavenHandler.php.
References array.
Referenced by Monolog\Handler\RavenHandler\write().
LineFormatter The formatter to use for the logs generated via Monolog\Handler\RavenHandler::handleBatch | ( | array | $records | ) |
{Handles a set of records at once.
array | $records | The records to handle (an array of record arrays) |
Implements Monolog\Handler\HandlerInterface.
Definition at line 72 of file RavenHandler.php.
References Monolog\Handler\AbstractHandler\$level, $r, array, Monolog\Handler\RavenHandler\getBatchFormatter(), Monolog\Handler\AbstractProcessingHandler\handle(), Monolog\Handler\AbstractProcessingHandler\processRecord(), and string.
Monolog\Handler\RavenHandler::setBatchFormatter | ( | FormatterInterface | $formatter | ) |
Sets the formatter for the logs generated by handleBatch().
FormatterInterface | $formatter |
Definition at line 112 of file RavenHandler.php.
References Monolog\Handler\AbstractHandler\$formatter.
Monolog\Handler\RavenHandler::setRelease | ( | $value | ) |
string | $value |
Definition at line 225 of file RavenHandler.php.
|
protected |
{}
Definition at line 134 of file RavenHandler.php.
References $key, $options, Monolog\Handler\RavenHandler\$release, $source, array, and Monolog\Handler\RavenHandler\getExtraParameters().
|
protected |
Definition at line 55 of file RavenHandler.php.
Referenced by Monolog\Handler\RavenHandler\getBatchFormatter().
|
private |
Translates Monolog log levels to Raven log levels.
Definition at line 30 of file RavenHandler.php.
|
protected |
Definition at line 50 of file RavenHandler.php.
Referenced by Monolog\Handler\RavenHandler\__construct().
|
private |
Definition at line 45 of file RavenHandler.php.
Referenced by Monolog\Handler\RavenHandler\write().