File tree 1 file changed +2
-1
lines changed
src/Symfony/Bridge/Monolog/Formatter
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ public function __construct(array $options = array())
60
60
'date_format ' => self ::SIMPLE_DATE ,
61
61
'colors ' => true ,
62
62
'multiline ' => false ,
63
+ 'level_name_format ' => '%-9s ' ,
63
64
), $ options );
64
65
65
66
if (class_exists (VarCloner::class)) {
@@ -119,7 +120,7 @@ public function format(array $record)
119
120
$ formatted = strtr ($ this ->options ['format ' ], array (
120
121
'%datetime% ' => $ record ['datetime ' ]->format ($ this ->options ['date_format ' ]),
121
122
'%start_tag% ' => sprintf ('<%s> ' , $ levelColor ),
122
- '%level_name% ' => sprintf (' %-9s ' , $ record ['level_name ' ]),
123
+ '%level_name% ' => sprintf ($ this -> options [ ' level_name_format ' ] , $ record ['level_name ' ]),
123
124
'%end_tag% ' => '</> ' ,
124
125
'%channel% ' => $ record ['channel ' ],
125
126
'%message% ' => $ this ->replacePlaceHolder ($ record )['message ' ],
You can’t perform that action at this time.
0 commit comments