Logger refactor to meet PSR-4