[DZ-583066] Added api call logging option