Commit ad3dbba
committed
feature #6690 Added an example for a different method of verbosity level usage. (smatyas)
This PR was submitted for the 2.7 branch but it was merged into the 2.8 branch instead (closes #6690).
Discussion
----------
Added an example for a different method of verbosity level usage.
Setting a message level like in the added example, was not yet documented. I just found out this method by looking into the code. I also tested with some dummy command that it really does what I thought:
```
protected function execute(InputInterface $input, OutputInterface $output) {
$output->writeln('quiet', OutputInterface::VERBOSITY_QUIET);
$output->writeln('normal', OutputInterface::VERBOSITY_NORMAL);
$output->writeln('verbose', OutputInterface::VERBOSITY_VERBOSE);
$output->writeln('very verbose', OutputInterface::VERBOSITY_VERY_VERBOSE);
$output->writeln('debug', OutputInterface::VERBOSITY_DEBUG);
}
```
Commits
-------
cedfdc4 Added an example for a different method of verbosity level usage.1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
0 commit comments