Added logging
apidoc call unified in api, resources and actions