The [Google Cloud Logging API](https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-logging) or the stdout and stderr should be used to send logs to Stackdriver Logging.
The Google Cloud Logging API or the stdout and stderr should be used to send logs to Stackdriver Logging.