Added log function to machines frontend/php.