Loging class for PHP