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

Disable logger output #1111

Open
MartinMystikJonas opened this issue Apr 13, 2022 · 1 comment
Open

Disable logger output #1111

MartinMystikJonas opened this issue Apr 13, 2022 · 1 comment

Comments

@MartinMystikJonas
Copy link

MartinMystikJonas commented Apr 13, 2022

Steps to reproduce

In 2.* version it was possible to disable logger output (task run time etc) by using

Robo::logger()->setOutputStream(new NullOutput());

We need his for some task to prevent mixing logger output with expected task output (processed in CI build)

Expected behavior

No logger output

Actual behavior

Logger output is shown anyway. Is there any way to manually disable logger output?

@MartinMystikJonas
Copy link
Author

We found out that problem is that disabling of logger output is ovewritten here:

$resultPrinter->setOutput($this->output);

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