Skip to content

Commit cd8342e

Browse files
committed
Update MonologExtension.php
Allow to set New Relic app name
1 parent 95cf142 commit cd8342e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DependencyInjection/MonologExtension.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,16 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
614614
$handler['bubble'],
615615
));
616616
break;
617+
case 'newrelic':
618+
$definition->setArguments(array(
619+
$handler['level'],
620+
$handler['bubble'],
621+
$handler['app_name'],
622+
));
623+
break;
617624

618625
// Handlers using the constructor of AbstractHandler without adding their own arguments
619626
case 'browser_console':
620-
case 'newrelic':
621627
case 'test':
622628
case 'null':
623629
case 'debug':

0 commit comments

Comments
 (0)