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');
 
   75        $this->assertEquals(array(
'extra_c' => 
'd'), self::$customParameters);
 
   81        $record[
'extra'] = array(
'c' => array(
'key1' => 
'value1', 
'key2' => 
'value2'));
 
   87            array(
'extra_c_key1' => 
'value1', 
'extra_c_key2' => 
'value2'),
 
   88            self::$customParameters
 
   95        $record[
'extra'] = array(
'c' => 
'd');
 
  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);
 
An exception for terminatinating execution or to throw for unit testing.
testTheTransactionNameCanBeOverriddenFromEachLog()
testThehandlerCanHandleTheRecord()
testTheAppNameCanBeOverriddenFromEachLog()
testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace()
testTheTransactionNameIsNullByDefault()
testThehandlerCanAddContextParamsToTheNewRelicTrace()
testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
@expectedException Monolog\Handler\MissingExtensionException
testThehandlerCanAddExtraParamsToTheNewRelicTrace()
testTheTransactionNameCanBeInjectedFromTheConstructor()
testTheAppNameCanBeInjectedFromtheConstructor()
testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace()
testTheAppNameIsNullByDefault()
testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace()
Class to record a log on a NewRelic application.
isNewRelicEnabled()
Checks whether the NewRelic extension is enabled in the system.
isNewRelicEnabled()
Checks whether the NewRelic extension is enabled in the system.
const ERROR
Runtime errors.
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())
newrelic_set_appname($appname)
newrelic_add_custom_parameter($key, $value)
newrelic_name_transaction($transactionName)