Open Hackwar opened 1 year ago
One solution I found was this:
When calling a task, you can modify the verbosity level for the whole task by calling $newTask->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
before calling the run method. This requires that you use a collectionbuilder or the shortcut $this->task().
My build system, which depends on Robo, is outputting a lot of information, however I would actually like to control that better. I have tried to understand the documentation, but I'm getting nowhere. I also don't know where else to ask questions like this...
In my tasks I'm using other tasks, for example File\Replace, and those generate output. Now I would like to suppress the output of those "low-level" tasks for general execution and only show them when verbosity level is set to -vv or similar. How can I control that? How can I force the output of a subtask to have the verbosity level of very verbose or even debug?