You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [Authentication](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) section in the base directory's README.
35
52
36
-
About Google Cloud Logging
53
+
About Stackdriver Logging
37
54
--------------------------
38
55
39
-
[Google Cloud Logging][cloud-logging] collections and stores logs
40
-
from applications and services on the Google Cloud Platform.
56
+
[Stackdriver Logging][stackdriver-logging] allows you to store, search, analyze, monitor, and alert
57
+
on log data and events from Google Cloud Platform and Amazon Web Services (AWS). Logging is a
58
+
fully-managed service that performs at scale and can ingest application and system log data from
59
+
thousands of VMs. Even better, you can analyze all that log data in real-time.
60
+
61
+
See the [Stackdriver Logging docs][stackdriver-logging-quickstart] for more details on how to
62
+
activate Logging for your project.
63
+
64
+
See the ``gcloud-java`` API [Logging documentation][logging-api] to learn how to interact with the
65
+
Stackdriver Logging using this Client Library.
66
+
67
+
Getting Started
68
+
---------------
69
+
#### Prerequisites
70
+
For this tutorial, you will need a
71
+
[Google Developers Console](https://console.developers.google.com/) project with the Logging API
72
+
enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to
73
+
use Stackdriver Logging.
74
+
[Follow these instructions](https://cloud.google.com/docs/authentication#preparation) to get your
75
+
project set up. You will also need to set up the local development environment by [installing the
76
+
Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line:
77
+
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
78
+
79
+
#### Installation and setup
80
+
You'll need to obtain the `gcloud-java-logging` library. See the [Quickstart](#quickstart) section
81
+
to add `gcloud-java-logging` as a dependency in your code.
82
+
83
+
#### Creating an authorized service object
84
+
To make authenticated requests to Stackdriver Logging, you must create a service object with
85
+
credentials. You can then make API calls by calling methods on the Logging service object. The
we put together all the code shown above into three programs. The programs assume that you are
168
+
running on Compute Engine or from your own desktop.
44
169
45
170
Java Versions
46
171
-------------
@@ -50,7 +175,9 @@ Java 7 or above is required for using this client.
50
175
Testing
51
176
-------
52
177
53
-
TODO
178
+
This library has tools to help make tests for code using Stackdriver Logging.
179
+
180
+
See [TESTING] to read more about testing.
54
181
55
182
Versioning
56
183
----------
@@ -66,7 +193,9 @@ Contributing
66
193
67
194
Contributions to this library are always welcome and highly encouraged.
68
195
69
-
See [CONTRIBUTING] for more information on how to get started.
196
+
See `gcloud-java`'s [CONTRIBUTING] documentation and the `gcloud-*` [shared documentation](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started.
197
+
198
+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
70
199
71
200
License
72
201
-------
@@ -75,6 +204,11 @@ Apache 2.0 - See [LICENSE] for more information.
0 commit comments