Removed unused --raw switch and corrected parameter definitions in log command

It also includes some minor fixes to log operation