1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Log extra data as custom parameters in new relic.

This commit is contained in:
Ray Ward
2014-05-13 15:22:12 +10:00
parent 467e30a9c9
commit bdf58af603
2 changed files with 41 additions and 6 deletions

View File

@@ -62,6 +62,10 @@ class NewRelicHandler extends AbstractProcessingHandler
foreach ($record['context'] as $key => $parameter) {
newrelic_add_custom_parameter($key, $parameter);
}
foreach ($record['extra'] as $key => $parameter) {
newrelic_add_custom_parameter($key, $parameter);
}
}
/**