improved logging for ApiMethod