@@ -163,16 +163,22 @@ You can also set these colors and options inside the tagname::
163
163
Verbosity Levels
164
164
~~~~~~~~~~~~~~~~
165
165
166
- The console has 3 levels of verbosity. These are defined in the
166
+ .. versionadded :: 2.3
167
+ The ``VERBOSITY_VERY_VERBOSE `` and ``VERBOSITY_DEBUG `` constants were introduced
168
+ in version 2.3
169
+
170
+ The console has 5 levels of verbosity. These are defined in the
167
171
:class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface `:
168
172
169
- ================================== ===============================
170
- Option Value
171
- ================================== ===============================
172
- OutputInterface::VERBOSITY_QUIET Do not output any messages
173
- OutputInterface::VERBOSITY_NORMAL The default verbosity level
174
- OutputInterface::VERBOSITY_VERBOSE Increased verbosity of messages
175
- ================================== ===============================
173
+ ======================================= ==================================
174
+ Option Value
175
+ ======================================= ==================================
176
+ OutputInterface::VERBOSITY_QUIET Do not output any messages
177
+ OutputInterface::VERBOSITY_NORMAL The default verbosity level
178
+ OutputInterface::VERBOSITY_VERBOSE Increased verbosity of messages
179
+ OutputInterface::VERBOSITY_VERY_VERBOSE Informative non essential messages
180
+ OutputInterface::VERBOSITY_DEBUG Debug messages
181
+ ======================================= ==================================
176
182
177
183
You can specify the quiet verbosity level with the ``--quiet `` or ``-q ``
178
184
option. The ``--verbose `` or ``-v `` option is used when you want an increased
@@ -181,12 +187,12 @@ level of verbosity.
181
187
.. tip ::
182
188
183
189
The full exception stacktrace is printed if the ``VERBOSITY_VERBOSE ``
184
- level is used.
190
+ level or above is used.
185
191
186
192
It is possible to print a message in a command for only a specific verbosity
187
193
level. For example::
188
194
189
- if (OutputInterface::VERBOSITY_VERBOSE == = $output->getVerbosity()) {
195
+ if (OutputInterface::VERBOSITY_VERBOSE < = $output->getVerbosity()) {
190
196
$output->writeln(...);
191
197
}
192
198
0 commit comments