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 16
16
use Symfony \Component \Config \Definition \ConfigurationInterface ;
17
17
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
18
18
use Monolog \Logger ;
19
+ use Monolog \Handler \SyslogUdpHandler ;
19
20
20
21
/**
21
22
* This class contains the configuration information for the bundle
162
163
* - [level]: level name or int value, defaults to DEBUG
163
164
* - [bubble]: bool, defaults to true
164
165
* - [ident]: string, defaults to
165
- * - [rfc]: int 0 ( RFC3164) or 1 ( RFC5424) , defaults to 1
166
+ * - [rfc]: RFC3164 or RFC5424, defaults to RFC5424
166
167
*
167
168
* - swift_mailer:
168
169
* - from_email: optional if email_prototype is given
@@ -495,7 +496,10 @@ public function getConfigTreeBuilder()
495
496
->scalarNode ('title ' )->defaultNull ()->end () // pushover
496
497
->scalarNode ('host ' )->defaultNull ()->end () // syslogudp & hipchat
497
498
->scalarNode ('port ' )->defaultValue (514 )->end () // syslogudp
498
- ->integerNode ('rfc ' )->defaultValue (1 )->end () // syslogudp
499
+ ->enumNode ('rfc ' )
500
+ ->values ([SyslogUdpHandler::RFC5424 , SyslogUdpHandler::RFC3164 ])
501
+ ->defaultValue (SyslogUdpHandler::RFC5424 )
502
+ ->end () // syslogudp
499
503
->arrayNode ('publisher ' )
500
504
->canBeUnset ()
501
505
->beforeNormalization ()
You can’t perform that action at this time.
0 commit comments