84 unset($record[
'formatted'][
'context'][
'transaction_name']);
87 if (isset($record[
'context'][
'exception']) && $record[
'context'][
'exception'] instanceof \
Exception) {
89 unset($record[
'formatted'][
'context'][
'exception']);
94 if (isset($record[
'formatted'][
'context']) && is_array($record[
'formatted'][
'context'])) {
95 foreach ($record[
'formatted'][
'context'] as $key => $parameter) {
96 if (is_array($parameter) && $this->explodeArrays) {
97 foreach ($parameter as $paramKey => $paramValue) {
106 if (isset($record[
'formatted'][
'extra']) && is_array($record[
'formatted'][
'extra'])) {
107 foreach ($record[
'formatted'][
'extra'] as $key => $parameter) {
108 if (is_array($parameter) && $this->explodeArrays) {
109 foreach ($parameter as $paramKey => $paramValue) {
126 return extension_loaded(
'newrelic');
138 if (isset($context[
'appname'])) {
139 return $context[
'appname'];
155 if (isset($context[
'transaction_name'])) {
156 return $context[
'transaction_name'];
188 if (null === $value || is_scalar($value)) {
setNewRelicTransactionName($transactionName)
Overwrites the name of the current transaction.
setNewRelicAppName($appName)
Sets the NewRelic application that should receive this log.
const ERROR
Runtime errors.
getTransactionName(array $context)
Returns the name of the current transaction.
Base Handler class providing the Handler structure.
__construct( $level=Logger::ERROR, $bubble=true, $appName=null, $explodeArrays=false, $transactionName=null)
getAppName(array $context)
Returns the appname where this log should be sent.
Class to record a log on a NewRelic application.
newrelic_add_custom_parameter($key, $value)
Exception can be thrown if an extension for an handler is missing.
Create styles array
The data for the language used.
newrelic_name_transaction($transactionName)
isNewRelicEnabled()
Checks whether the NewRelic extension is enabled in the system.
setNewRelicParameter($key, $value)
newrelic_set_appname($appname)