However I think it's inelegant to add functionality to the script that is going to be used during testing only. I would rather that the test script did that alone.sub log_toggle { ($_[0]) ? Log::Log4perl->appender_thresholds_adjust(7) : Log::Log4perl->appender_thresholds_adjust(-7); }
In reply to Re^4: Strategy for conditional logging in tests
by andreas1234567
in thread Strategy for conditional logging in tests
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |