log metadata is now a json string
moved code to private function and check for renderView false
updates to logging locations and consts