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
Copy file name to clipboardExpand all lines: google-cloud-bigquery-data_transfer/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,5 +50,38 @@ end
50
50
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
51
51
to see the full list of Cloud APIs that we cover.
52
52
53
+
## Enabling Logging
54
+
55
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
56
+
57
+
Configuring a Ruby stdlib logger:
58
+
59
+
```ruby
60
+
require"logger"
61
+
62
+
moduleMyLogger
63
+
LOGGER=Logger.new$stderr, level:Logger::WARN
64
+
deflogger
65
+
LOGGER
66
+
end
67
+
end
68
+
69
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
70
+
moduleGRPC
71
+
extendMyLogger
72
+
end
73
+
```
74
+
75
+
## Supported Ruby Versions
76
+
77
+
This library is supported on Ruby 2.0+.
78
+
79
+
However, Ruby 2.3 or later is strongly recommended, as earlier releases have
80
+
reached or are nearing end-of-life. After June 1, 2018, Google will provide
81
+
official support only for Ruby versions that are considered current and
82
+
supported by Ruby Core (that is, Ruby versions that are either in normal
83
+
maintenance or in security maintenance).
84
+
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
Copy file name to clipboardExpand all lines: google-cloud-bigtable/README.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,37 @@ steps:
20
20
$ gem install google-cloud-bigtable
21
21
```
22
22
23
-
### Supported Ruby Versions
23
+
### Next Steps
24
+
- Read the [Client Library Documentation][] for Cloud Bigtable API
25
+
to see other available methods on the client.
26
+
- Read the [Cloud Bigtable API Product documentation][Product Documentation]
27
+
to learn more about the product and see How-to Guides.
28
+
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
29
+
to see the full list of Cloud APIs that we cover.
30
+
31
+
## Enabling Logging
32
+
33
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
34
+
35
+
Configuring a Ruby stdlib logger:
36
+
37
+
```ruby
38
+
require"logger"
39
+
40
+
moduleMyLogger
41
+
LOGGER=Logger.new$stderr, level:Logger::WARN
42
+
deflogger
43
+
LOGGER
44
+
end
45
+
end
46
+
47
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
48
+
moduleGRPC
49
+
extendMyLogger
50
+
end
51
+
```
52
+
53
+
## Supported Ruby Versions
24
54
25
55
This library is supported on Ruby 2.0+.
26
56
@@ -31,13 +61,5 @@ supported by Ruby Core (that is, Ruby versions that are either in normal
31
61
maintenance or in security maintenance).
32
62
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
33
63
34
-
### Next Steps
35
-
- Read the [Client Library Documentation][] for Cloud Bigtable API
36
-
to see other available methods on the client.
37
-
- Read the [Cloud Bigtable API Product documentation][Product Documentation]
38
-
to learn more about the product and see How-to Guides.
39
-
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
- Read the [Client Library Documentation][] for Google Container Engine API
36
+
to see other available methods on the client.
37
+
- Read the [Google Container Engine API Product documentation][Product Documentation]
38
+
to learn more about the product and see How-to Guides.
39
+
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
40
+
to see the full list of Cloud APIs that we cover.
41
+
42
+
## Enabling Logging
43
+
44
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
45
+
46
+
Configuring a Ruby stdlib logger:
47
+
48
+
```ruby
49
+
require"logger"
50
+
51
+
moduleMyLogger
52
+
LOGGER=Logger.new$stderr, level:Logger::WARN
53
+
deflogger
54
+
LOGGER
55
+
end
56
+
end
57
+
58
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
59
+
moduleGRPC
60
+
extendMyLogger
61
+
end
62
+
```
63
+
64
+
## Supported Ruby Versions
35
65
36
66
This library is supported on Ruby 2.0+.
37
67
@@ -42,13 +72,5 @@ supported by Ruby Core (that is, Ruby versions that are either in normal
42
72
maintenance or in security maintenance).
43
73
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
44
74
45
-
### Next Steps
46
-
- Read the [Client Library Documentation][] for Google Container Engine API
47
-
to see other available methods on the client.
48
-
- Read the [Google Container Engine API Product documentation][Product Documentation]
49
-
to learn more about the product and see How-to Guides.
50
-
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
Copy file name to clipboardExpand all lines: google-cloud-dataproc/README.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,37 @@ cluster_controller_client.list_clusters(project_id_2, region).each_page do |page
42
42
end
43
43
```
44
44
45
-
### Supported Ruby Versions
45
+
### Next Steps
46
+
- Read the [Client Library Documentation][] for Google Cloud Dataproc API
47
+
to see other available methods on the client.
48
+
- Read the [Google Cloud Dataproc API Product documentation][Product Documentation]
49
+
to learn more about the product and see How-to Guides.
50
+
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
51
+
to see the full list of Cloud APIs that we cover.
52
+
53
+
## Enabling Logging
54
+
55
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
56
+
57
+
Configuring a Ruby stdlib logger:
58
+
59
+
```ruby
60
+
require"logger"
61
+
62
+
moduleMyLogger
63
+
LOGGER=Logger.new$stderr, level:Logger::WARN
64
+
deflogger
65
+
LOGGER
66
+
end
67
+
end
68
+
69
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
70
+
moduleGRPC
71
+
extendMyLogger
72
+
end
73
+
```
74
+
75
+
## Supported Ruby Versions
46
76
47
77
This library is supported on Ruby 2.0+.
48
78
@@ -53,13 +83,5 @@ supported by Ruby Core (that is, Ruby versions that are either in normal
53
83
maintenance or in security maintenance).
54
84
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
55
85
56
-
### Next Steps
57
-
- Read the [Client Library Documentation][] for Google Cloud Dataproc API
58
-
to see other available methods on the client.
59
-
- Read the [Google Cloud Dataproc API Product documentation][Product Documentation]
60
-
to learn more about the product and see How-to Guides.
61
-
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
+
54
+
Configuring a Ruby stdlib logger:
55
+
56
+
```ruby
57
+
require"logger"
58
+
59
+
moduleMyLogger
60
+
LOGGER=Logger.new$stderr, level:Logger::WARN
61
+
deflogger
62
+
LOGGER
63
+
end
64
+
end
65
+
66
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
0 commit comments