ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class to record a log on a NewRelic application. More...
Public Member Functions | ||||
__construct ( $level=Logger::ERROR, $bubble=true, $appName=null, $explodeArrays=false, $transactionName=null) | ||||
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) | |
isNewRelicEnabled () | |
Checks whether the NewRelic extension is enabled in the system. More... | |
getAppName (array $context) | |
Returns the appname where this log should be sent. More... | |
getTransactionName (array $context) | |
Returns the name of the current transaction. More... | |
setNewRelicAppName ($appName) | |
Sets the NewRelic application that should receive this log. More... | |
setNewRelicTransactionName ($transactionName) | |
Overwrites the name of the current transaction. More... | |
setNewRelicParameter ($key, $value) | |
getDefaultFormatter () | |
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 | |
$appName | |
$transactionName | |
$explodeArrays | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Class to record a log on a NewRelic application.
Enabling New Relic High Security mode may prevent capture of useful information.
Definition at line 24 of file NewRelicHandler.php.
Monolog\Handler\NewRelicHandler::__construct | ( | $level = Logger::ERROR , |
|
$bubble = true , |
|||
$appName = null , |
|||
$explodeArrays = false , |
|||
$transactionName = null |
|||
) |
string | $appName | |
bool | $explodeArrays | |
string | $transactionName |
Definition at line 55 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$appName, Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\NewRelicHandler\$explodeArrays, Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\NewRelicHandler\$transactionName.
|
protected |
Returns the appname where this log should be sent.
Each log can override the default appname, set in this handler's constructor, by providing the appname in it's context.
array | $context |
Definition at line 136 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$appName.
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
Definition at line 198 of file NewRelicHandler.php.
|
protected |
Returns the name of the current transaction.
Each log can override the default transaction name, set in this handler's constructor, by providing the transaction_name in it's context
array | $context |
Definition at line 153 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$transactionName.
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
Checks whether the NewRelic extension is enabled in the system.
Definition at line 124 of file NewRelicHandler.php.
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
Sets the NewRelic application that should receive this log.
string | $appName |
Definition at line 167 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$appName, and Monolog\Handler\newrelic_set_appname().
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
string | $key | |
mixed | $value |
Definition at line 186 of file NewRelicHandler.php.
References $key, and Monolog\Handler\newrelic_add_custom_parameter().
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
Overwrites the name of the current transaction.
string | $transactionName |
Definition at line 177 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$transactionName, and Monolog\Handler\newrelic_name_transaction().
Referenced by Monolog\Handler\NewRelicHandler\write().
|
protected |
Definition at line 72 of file NewRelicHandler.php.
References Monolog\Handler\NewRelicHandler\$appName, $key, Monolog\Handler\NewRelicHandler\$transactionName, Monolog\Handler\NewRelicHandler\getAppName(), Monolog\Handler\NewRelicHandler\getTransactionName(), Monolog\Handler\NewRelicHandler\isNewRelicEnabled(), Monolog\Handler\newrelic_notice_error(), Monolog\Handler\NewRelicHandler\setNewRelicAppName(), Monolog\Handler\NewRelicHandler\setNewRelicParameter(), and Monolog\Handler\NewRelicHandler\setNewRelicTransactionName().
|
protected |
Definition at line 31 of file NewRelicHandler.php.
Referenced by Monolog\Handler\NewRelicHandler\__construct(), Monolog\Handler\NewRelicHandler\getAppName(), Monolog\Handler\NewRelicHandler\setNewRelicAppName(), and Monolog\Handler\NewRelicHandler\write().
|
protected |
Definition at line 46 of file NewRelicHandler.php.
Referenced by Monolog\Handler\NewRelicHandler\__construct().
|
protected |
Definition at line 38 of file NewRelicHandler.php.
Referenced by Monolog\Handler\NewRelicHandler\__construct(), Monolog\Handler\NewRelicHandler\getTransactionName(), Monolog\Handler\NewRelicHandler\setNewRelicTransactionName(), and Monolog\Handler\NewRelicHandler\write().