Skip to content

Commit f0fa622

Browse files
authored
Rename Cloud Logging to Stackdriver Logging (#1121)
1 parent a07ecc6 commit f0fa622

File tree

8 files changed

+25
-26
lines changed

8 files changed

+25
-26
lines changed

gcloud-java-logging/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<name>GCloud Java Logging</name>
77
<url>https://github.com/GoogleCloudPlatform/gcloud-java/tree/master/gcloud-java-logging</url>
88
<description>
9-
Java idiomatic client for Google Cloud Logging.
9+
Java idiomatic client for Stackdriver Logging.
1010
</description>
1111
<parent>
1212
<groupId>com.google.cloud</groupId>

gcloud-java-logging/src/main/java/com/google/cloud/logging/LogEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
import java.util.Objects;
3333

3434
/**
35-
* A Google Cloud Logging log entry. All log entries are represented via objects of this class.
36-
* Log entries can have different type of payloads: an UTF-8 string (see
35+
* A Stackdriver Logging log entry. All log entries are represented via objects of this class. Log
36+
* entries can have different type of payloads: an UTF-8 string (see
3737
* {@link Payload.StringPayload}), a JSON object (see {@link Payload.JsonPayload}, or a protobuf
3838
* object (see {@link Payload.ProtoPayload}). Entries can also store additional information about
3939
* the operation or the HTTP request that generated the log (see {@link LogEntry#operation()} and

gcloud-java-logging/src/main/java/com/google/cloud/logging/Logging.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public static EntryListOption filter(String filter) {
282282
Future<Boolean> deleteLogAsync(String log);
283283

284284
/**
285-
* Lists the monitored resource descriptors used by Google Cloud Logging. This method returns a
285+
* Lists the monitored resource descriptors used by Stackdriver Logging. This method returns a
286286
* {@link Page} object that can be used to consume paginated results. Use {@link ListOption} to
287287
* specify the page size or the page token from which to start listing resource descriptors.
288288
*
@@ -291,7 +291,7 @@ public static EntryListOption filter(String filter) {
291291
Page<MonitoredResourceDescriptor> listMonitoredResourceDescriptors(ListOption... options);
292292

293293
/**
294-
* Sends a request for listing monitored resource descriptors used by Google Cloud Logging. This
294+
* Sends a request for listing monitored resource descriptors used by Stackdriver Logging. This
295295
* method returns a {@code Future} object to consume the result. {@link Future#get()} returns an
296296
* {@link AsyncPage} object that can be used to asynchronously handle paginated results. Use
297297
* {@link ListOption} to specify the page size or the page token from which to start listing
@@ -376,17 +376,17 @@ Future<AsyncPage<MonitoredResourceDescriptor>> listMonitoredResourceDescriptorsA
376376
Future<Boolean> deleteMetricAsync(String metric);
377377

378378
/**
379-
* Writes log entries to Cloud Logging. Use {@link WriteOption#logName(String)} to provide a log
380-
* name for those entries that do not specify one. Use
379+
* Writes log entries to Stackdriver Logging. Use {@link WriteOption#logName(String)} to provide a
380+
* log name for those entries that do not specify one. Use
381381
* {@link WriteOption#resource(MonitoredResource)} to provide a monitored resource for those
382382
* entries that do not specify one. Use {@link WriteOption#labels(Map)} to provide some labels
383383
* to be added to every entry in {@code logEntries}.
384384
*/
385385
void write(Iterable<LogEntry> logEntries, WriteOption... options);
386386

387387
/**
388-
* Sends a request to log entries to Cloud Logging. Use {@link WriteOption#logName(String)} to
389-
* provide a log name for those entries that do not specify one. Use
388+
* Sends a request to log entries to Stackdriver Logging. Use {@link WriteOption#logName(String)}
389+
* to provide a log name for those entries that do not specify one. Use
390390
* {@link WriteOption#resource(MonitoredResource)} to provide a monitored resource for those
391391
* entries that do not specify one. Use {@link WriteOption#labels(Map)} to provide some labels
392392
* to be added to every entry in {@code logEntries}. The method returns a {@code Future} object

gcloud-java-logging/src/main/java/com/google/cloud/logging/Metric.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.util.concurrent.Future;
2828

2929
/**
30-
* Google Cloud Logging metrics describe logs-based metric. The value of the metric is the number of
30+
* Stackdriver Logging metrics describe logs-based metric. The value of the metric is the number of
3131
* log entries that match a logs filter (see {@link #filter()}).
3232
*
3333
* <p>{@code Metric} adds a layer of service-related functionality over {@link MetricInfo}. Objects

gcloud-java-logging/src/main/java/com/google/cloud/logging/MetricInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.util.Objects;
2626

2727
/**
28-
* Google Cloud Logging metrics describe logs-based metric. The value of the metric is the number of
28+
* Stackdriver Logging metrics describe logs-based metric. The value of the metric is the number of
2929
* log entries that match a logs filter (see {@link #filter()}).
3030
*
3131
* @see <a href="https://cloud.google.com/logging/docs/view/logs_based_metrics">Logs-based Metrics

gcloud-java-logging/src/main/java/com/google/cloud/logging/Sink.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
import java.util.concurrent.Future;
2828

2929
/**
30-
* Google Cloud Logging sinks can be used to control the export of your logs. Each sink specifies
31-
* the export of a set of log entries to a certain destination. A sink consists of a name, unique to
32-
* the project, a filter for choosing the log entries to export and a destination for the log
33-
* entries.
30+
* Stackdriver Logging sinks can be used to control the export of your logs. Each sink specifies the
31+
* export of a set of log entries to a certain destination. A sink consists of a name, unique to the
32+
* project, a filter for choosing the log entries to export and a destination for the log entries.
3433
*
3534
* <p>Sink destination can either be a Google Cloud Storage bucket (see
3635
* {@link SinkInfo.Destination.BucketDestination}, a Google Cloud BigQuery dataset (see

gcloud-java-logging/src/main/java/com/google/cloud/logging/SinkInfo.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
import java.util.regex.Pattern;
2828

2929
/**
30-
* Google Cloud Logging sinks can be used to control the export of your logs. Each sink specifies
31-
* the export of a set of log entries to a certain destination. A sink consists of a name, unique to
32-
* the project, a filter for choosing the log entries to export and a destination for the log
30+
* Stackdriver Logging sinks can be used to control the export of your logs. Each sink specifies the
31+
* export of a set of log entries to a certain destination. A sink consists of a name, unique to the
32+
* project, a filter for choosing the log entries to export and a destination for the log
3333
* entries.
3434
*
3535
* <p>Sink destination can either be a Google Cloud Storage bucket (see
@@ -56,7 +56,7 @@ public abstract static class Destination implements Serializable {
5656
private final Type type;
5757

5858
/**
59-
* Type of destination for Google Cloud Logging sink.
59+
* Type of destination for Stackdriver Logging sink.
6060
*/
6161
public enum Type {
6262
/**
@@ -375,8 +375,8 @@ static <T extends Destination> T fromPb(String destinationPb) {
375375
}
376376

377377
/**
378-
* Available log entry formats. Log entries can be written to Cloud Logging in either format and
379-
* can be exported in either format. Version 2 is the preferred format.
378+
* Available log entry formats. Log entries can be written to Stackdriver Logging in either format
379+
* and can be exported in either format. Version 2 is the preferred format.
380380
*/
381381
public enum VersionFormat {
382382
V1(LogSink.VersionFormat.V1),
@@ -434,7 +434,7 @@ public abstract static class Builder {
434434
* Sets an advanced logs filter. Only log entries matching that filter are exported. The filter
435435
* must be consistent with the log entry format specified with
436436
* {@link #versionFormat(VersionFormat)}, regardless of the format of the log entry that was
437-
* originally written to Google Cloud Logging. Example (V2 format):
437+
* originally written to Stackdriver Logging. Example (V2 format):
438438
* {@code logName=projects/my-projectid/logs/syslog AND severity>=ERROR}.
439439
*
440440
* @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Log
@@ -538,7 +538,7 @@ public <T extends Destination> T destination() {
538538
/**
539539
* Returns an advanced logs filter. Only log entries matching that filter are exported. The filter
540540
* must be consistent with the log entry format specified in {@link #versionFormat()}, regardless
541-
* of the format of the log entry that wa originally written to Google Cloud Logging. Example (V2
541+
* of the format of the log entry that wa originally written to Stackdriver Logging. Example (V2
542542
* format): {@code logName=projects/my-projectid/logs/syslog AND severity>=ERROR}.
543543
*
544544
* @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Log

gcloud-java-logging/src/main/java/com/google/cloud/logging/spi/LoggingRpc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public interface LoggingRpc extends AutoCloseable {
9696
Future<Empty> delete(DeleteLogRequest request);
9797

9898
/**
99-
* Sends a request to write log entries to Cloud Logging. This method returns a {@code Future}
100-
* object to consume the result. {@link Future#get()} returns a response object for the write
101-
* operation.
99+
* Sends a request to write log entries to Stackdriver Logging. This method returns a
100+
* {@code Future} object to consume the result. {@link Future#get()} returns a response object for
101+
* the write operation.
102102
*
103103
* @param request the request object containing all of the parameters for the API call
104104
*/

0 commit comments

Comments
 (0)