Skip to content

Commit f098faa

Browse files
committed
fixes #342 add rfc option for syslogudp handler
1 parent dfa458c commit f098faa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
* - [level]: level name or int value, defaults to DEBUG
158158
* - [bubble]: bool, defaults to true
159159
* - [ident]: string, defaults to
160+
* - [rfc]: string, defaults to
160161
*
161162
* - swift_mailer:
162163
* - from_email: optional if email_prototype is given
@@ -486,6 +487,7 @@ public function getConfigTreeBuilder()
486487
->scalarNode('title')->defaultNull()->end() // pushover
487488
->scalarNode('host')->defaultNull()->end() // syslogudp & hipchat
488489
->scalarNode('port')->defaultValue(514)->end() // syslogudp
490+
->scalarNode('rfc')->defaultNull()->end() // syslogudp
489491
->arrayNode('publisher')
490492
->canBeUnset()
491493
->beforeNormalization()

DependencyInjection/MonologExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
538538
if ($handler['ident']) {
539539
$definition->addArgument($handler['ident']);
540540
}
541+
if ($handler['rfc']) {
542+
$definition->addArgument($handler['rfc']);
543+
}
541544
break;
542545

543546
case 'swift_mailer':

0 commit comments

Comments
 (0)