@@ -173,22 +173,18 @@ Verbosity Levels
173
173
The ``VERBOSITY_VERY_VERBOSE `` and ``VERBOSITY_DEBUG `` constants were introduced
174
174
in version 2.3
175
175
176
- The console has 5 levels of verbosity. These are defined in the
176
+ The console has five levels of verbosity. These are defined in the
177
177
:class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface `:
178
178
179
- ======================================= ==================================
180
- Mode Value
181
- ======================================= ==================================
182
- OutputInterface::VERBOSITY_QUIET Do not output any messages
183
- OutputInterface::VERBOSITY_NORMAL The default verbosity level
184
- OutputInterface::VERBOSITY_VERBOSE Increased verbosity of messages
185
- OutputInterface::VERBOSITY_VERY_VERBOSE Informative non essential messages
186
- OutputInterface::VERBOSITY_DEBUG Debug messages
187
- ======================================= ==================================
188
-
189
- You can specify the quiet verbosity level with the ``--quiet `` or ``-q ``
190
- option. The ``--verbose `` or ``-v `` option is used when you want an increased
191
- level of verbosity.
179
+ =========================================== ================================== =====================
180
+ Value Meaning Console option
181
+ =========================================== ================================== =====================
182
+ ``OutputInterface::VERBOSITY_QUIET `` Do not output any messages ``-q `` or ``--quiet ``
183
+ ``OutputInterface::VERBOSITY_NORMAL `` The default verbosity level (none)
184
+ ``OutputInterface::VERBOSITY_VERBOSE `` Increased verbosity of messages ``-v ``
185
+ ``OutputInterface::VERBOSITY_VERY_VERBOSE `` Informative non essential messages ``-vv ``
186
+ ``OutputInterface::VERBOSITY_DEBUG `` Debug messages ``-vvv ``
187
+ =========================================== ================================== ======================
192
188
193
189
.. tip ::
194
190
@@ -198,7 +194,7 @@ level of verbosity.
198
194
It is possible to print a message in a command for only a specific verbosity
199
195
level. For example::
200
196
201
- if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
197
+ if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE ) {
202
198
$output->writeln(...);
203
199
}
204
200
0 commit comments