Is adding:
```php
Logger::applyFilter('writing', false);
```
at the end of this function or `tearDown()` wouldn't be enough ?