Tiny log function for php programming