Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categorizing output into verbosity levels #1147

Open
Hackwar opened this issue May 26, 2023 · 1 comment
Open

Categorizing output into verbosity levels #1147

Hackwar opened this issue May 26, 2023 · 1 comment

Comments

@Hackwar
Copy link

Hackwar commented May 26, 2023

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?

@Hackwar
Copy link
Author

Hackwar commented Jun 2, 2023

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant