Php class to write a log