26 self::$appname = null;
27 self::$customParameters =
array();
28 self::$transactionName = null;
50 $this->assertEquals(
array(
'context_a' =>
'b'), self::$customParameters);
59 array(
'a' =>
array(
'key1' =>
'value1',
'key2' =>
'value2'))
62 array(
'context_a_key1' =>
'value1',
'context_a_key2' =>
'value2'),
63 self::$customParameters
70 $record[
'extra'] =
array(
'c' =>
'd');
73 $handler->handle($record);
75 $this->assertEquals(
array(
'extra_c' =>
'd'), self::$customParameters);
81 $record[
'extra'] =
array(
'c' =>
array(
'key1' =>
'value1',
'key2' =>
'value2'));
84 $handler->handle($record);
87 array(
'extra_c_key1' =>
'value1',
'extra_c_key2' =>
'value2'),
88 self::$customParameters
95 $record[
'extra'] =
array(
'c' =>
'd');
98 $handler->handle($record);
105 $this->assertEquals($expected, self::$customParameters);
120 $this->assertEquals(null, self::$appname);
128 $this->assertEquals(
'myAppName', self::$appname);
136 $this->assertEquals(
'logAppName', self::$appname);
144 $this->assertEquals(null, self::$transactionName);
152 $this->assertEquals(
'myTransaction', self::$transactionName);
160 $this->assertEquals(
'logTransactName', self::$transactionName);
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
testTheTransactionNameCanBeInjectedFromTheConstructor()
testThehandlerCanAddExtraParamsToTheNewRelicTrace()
testThehandlerCanHandleTheRecord()
testThehandlerCanAddContextParamsToTheNewRelicTrace()
testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
testTheTransactionNameCanBeOverriddenFromEachLog()
testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace()
getRecord($level=Logger::WARNING, $message='test', $context=array())
testTheTransactionNameIsNullByDefault()
testTheAppNameCanBeOverriddenFromEachLog()
Class to record a log on a NewRelic application.
newrelic_add_custom_parameter($key, $value)
testTheAppNameIsNullByDefault()
Create styles array
The data for the language used.
newrelic_name_transaction($transactionName)
testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace()
testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
Monolog
testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace()
newrelic_set_appname($appname)
testTheAppNameCanBeInjectedFromtheConstructor()