Event driven error logger utility for PHP projects