File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,32 @@ You can also set these colors and options inside the tagname::
160
160
// bold text on a yellow background
161
161
$output->writeln('<bg=yellow;options=bold>foo</bg=yellow;options=bold>');
162
162
163
+ Verbosity levels
164
+ ~~~~~~~~~~~~~~~~
165
+
166
+ The console has 3 levels of verbosity. These are defined in the
167
+ :class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface `:
168
+
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
+ ================================== ===============================
176
+
177
+ You can specify the quiet verbosity level with the ``--quiet `` or ``-q ``
178
+ option. The ``--verbose `` or ``-v `` option is used when you want an increased
179
+ level of verbosity.
180
+
181
+ It is possible to print messages in a command only for the according verbosity
182
+ level. For example::
183
+
184
+ if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) {
185
+ $output->writeln(...);
186
+ }
187
+
188
+ Note that when the quiet level is used, all output is suppressed.
163
189
164
190
Using Command Arguments
165
191
-----------------------
You can’t perform that action at this time.
0 commit comments