PHP Logging Class (copy of pear/Log)