Skip to content

Commit

Permalink
Rename Cloud Logging to Stackdriver Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Jul 20, 2016
1 parent a07ecc6 commit 43a6078
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion gcloud-java-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<name>GCloud Java Logging</name>
<url>https://github.com/GoogleCloudPlatform/gcloud-java/tree/master/gcloud-java-logging</url>
<description>
Java idiomatic client for Google Cloud Logging.
Java idiomatic client for Stackdriver Logging.
</description>
<parent>
<groupId>com.google.cloud</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import java.util.Objects;

/**
* A Google Cloud Logging log entry. All log entries are represented via objects of this class.
* Log entries can have different type of payloads: an UTF-8 string (see
* A Stackdriver Logging log entry. All log entries are represented via objects of this class. Log
* entries can have different type of payloads: an UTF-8 string (see
* {@link Payload.StringPayload}), a JSON object (see {@link Payload.JsonPayload}, or a protobuf
* object (see {@link Payload.ProtoPayload}). Entries can also store additional information about
* the operation or the HTTP request that generated the log (see {@link LogEntry#operation()} and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public static EntryListOption filter(String filter) {
Future<Boolean> deleteLogAsync(String log);

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

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

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

/**
* Sends a request to log entries to Cloud Logging. Use {@link WriteOption#logName(String)} to
* provide a log name for those entries that do not specify one. Use
* Sends a request to log entries to Stackdriver Logging. Use {@link WriteOption#logName(String)}
* to provide a log name for those entries that do not specify one. Use
* {@link WriteOption#resource(MonitoredResource)} to provide a monitored resource for those
* entries that do not specify one. Use {@link WriteOption#labels(Map)} to provide some labels
* to be added to every entry in {@code logEntries}. The method returns a {@code Future} object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.concurrent.Future;

/**
* Google Cloud Logging metrics describe logs-based metric. The value of the metric is the number of
* Stackdriver Logging metrics describe logs-based metric. The value of the metric is the number of
* log entries that match a logs filter (see {@link #filter()}).
*
* <p>{@code Metric} adds a layer of service-related functionality over {@link MetricInfo}. Objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.Objects;

/**
* Google Cloud Logging metrics describe logs-based metric. The value of the metric is the number of
* Stackdriver Logging metrics describe logs-based metric. The value of the metric is the number of
* log entries that match a logs filter (see {@link #filter()}).
*
* @see <a href="https://cloud.google.com/logging/docs/view/logs_based_metrics">Logs-based Metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@
import java.util.concurrent.Future;

/**
* Google Cloud Logging sinks can be used to control the export of your logs. Each sink specifies
* the export of a set of log entries to a certain destination. A sink consists of a name, unique to
* the project, a filter for choosing the log entries to export and a destination for the log
* entries.
* Stackdriver Logging sinks can be used to control the export of your logs. Each sink specifies the
* export of a set of log entries to a certain destination. A sink consists of a name, unique to the
* project, a filter for choosing the log entries to export and a destination for the log entries.
*
* <p>Sink destination can either be a Google Cloud Storage bucket (see
* {@link SinkInfo.Destination.BucketDestination}, a Google Cloud BigQuery dataset (see
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import java.util.regex.Pattern;

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

/**
* Type of destination for Google Cloud Logging sink.
* Type of destination for Stackdriver Logging sink.
*/
public enum Type {
/**
Expand Down Expand Up @@ -375,8 +375,8 @@ static <T extends Destination> T fromPb(String destinationPb) {
}

/**
* Available log entry formats. Log entries can be written to Cloud Logging in either format and
* can be exported in either format. Version 2 is the preferred format.
* Available log entry formats. Log entries can be written to Stackdriver Logging in either format
* and can be exported in either format. Version 2 is the preferred format.
*/
public enum VersionFormat {
V1(LogSink.VersionFormat.V1),
Expand Down Expand Up @@ -434,7 +434,7 @@ public abstract static class Builder {
* Sets an advanced logs filter. Only log entries matching that filter are exported. The filter
* must be consistent with the log entry format specified with
* {@link #versionFormat(VersionFormat)}, regardless of the format of the log entry that was
* originally written to Google Cloud Logging. Example (V2 format):
* originally written to Stackdriver Logging. Example (V2 format):
* {@code logName=projects/my-projectid/logs/syslog AND severity>=ERROR}.
*
* @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Log
Expand Down Expand Up @@ -538,7 +538,7 @@ public <T extends Destination> T destination() {
/**
* Returns an advanced logs filter. Only log entries matching that filter are exported. The filter
* must be consistent with the log entry format specified in {@link #versionFormat()}, regardless
* of the format of the log entry that wa originally written to Google Cloud Logging. Example (V2
* of the format of the log entry that wa originally written to Stackdriver Logging. Example (V2
* format): {@code logName=projects/my-projectid/logs/syslog AND severity>=ERROR}.
*
* @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public interface LoggingRpc extends AutoCloseable {
Future<Empty> delete(DeleteLogRequest request);

/**
* Sends a request to write log entries to Cloud Logging. This method returns a {@code Future}
* object to consume the result. {@link Future#get()} returns a response object for the write
* operation.
* Sends a request to write log entries to Stackdriver Logging. This method returns a
* {@code Future} object to consume the result. {@link Future#get()} returns a response object for
* the write operation.
*
* @param request the request object containing all of the parameters for the API call
*/
Expand Down

0 comments on commit 43a6078

Please sign in to comment.