Update view_hostname

Redirected both output (stdout) and errors (stderr) to Assignment.log file