Logger based heavily on Monolog, but works with PHP 5.1 and above.