consolidation / robo

Modern task runner for PHP
http://robo.li
Other
2.67k stars 304 forks source link

Disable logger output #1111

Open MartinMystikJonas opened 2 years ago

MartinMystikJonas commented 2 years ago

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 commented 2 years ago

We found out that problem is that disabling of logger output is ovewritten here: https://github.com/consolidation/robo/blob/9d2af5307c38c2d8955c8fd840d0fa170363a5da/src/Result.php#L274