File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Config \Definition \ConfigurationInterface ;
16
16
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
17
17
use Monolog \Logger ;
18
+ use Monolog \Handler \SyslogUdpHandler ;
18
19
19
20
/**
20
21
* This class contains the configuration information for the bundle
157
158
* - [level]: level name or int value, defaults to DEBUG
158
159
* - [bubble]: bool, defaults to true
159
160
* - [ident]: string, defaults to
160
- * - [rfc]: int 0 ( RFC3164) or 1 ( RFC5424) , defaults to 1
161
+ * - [rfc]: RFC3164 or RFC5424, defaults to RFC5424
161
162
*
162
163
* - swift_mailer:
163
164
* - from_email: optional if email_prototype is given
@@ -487,7 +488,10 @@ public function getConfigTreeBuilder()
487
488
->scalarNode ('title ' )->defaultNull ()->end () // pushover
488
489
->scalarNode ('host ' )->defaultNull ()->end () // syslogudp & hipchat
489
490
->scalarNode ('port ' )->defaultValue (514 )->end () // syslogudp
490
- ->integerNode ('rfc ' )->defaultValue (1 )->end () // syslogudp
491
+ ->enumNode ('rfc ' )
492
+ ->values ([SyslogUdpHandler::RFC5424 , SyslogUdpHandler::RFC3164 ])
493
+ ->defaultValue (SyslogUdpHandler::RFC5424 )
494
+ ->end () // syslogudp
491
495
->arrayNode ('publisher ' )
492
496
->canBeUnset ()
493
497
->beforeNormalization ()
You can’t perform that action at this time.
0 commit comments