This patch is to log along with the output of a command into a log-file also the command itself when log is enabled. Please review the patch. Regards, Abhijit Halder