Skip to content

Commit 365c870

Browse files
committed
Added an example for a different method of verbosity level usage.
1 parent 09a3381 commit 365c870

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/console/introduction.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ level. For example::
229229
$output->writeln(...);
230230
}
231231

232+
You can achieve the same by using the options. For example::
233+
234+
$output->writeln('This message is only shown from the verbose level.', OutputInterface::VERBOSITY_VERBOSE);
235+
232236
There are also more semantic methods you can use to test for each of the
233237
verbosity levels::
234238

0 commit comments

Comments
 (0)