phpunit is added as a dependency
fixed sample file
Calling isHandle() to decide whether logging is enabled or not on that level