in reply to Testing a module that writes logs to a file
Make your logging directory configurable and for testing use (for example) t/var/log instead of /var/log. That way you can also test for graceful (or draconic) handling of exceptions like the logging directory not existing etc.
|
|---|