logger.php - sendpoint function