google-cloud-logging 3.15.0__tar.gz → 3.16.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/MANIFEST.in +1 -1
- {google_cloud_logging-3.15.0/google_cloud_logging.egg-info → google_cloud_logging-3.16.1}/PKG-INFO +23 -24
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/README.rst +13 -12
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/gapic_version.py +2 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/client.py +2 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/gapic_version.py +2 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/structured_log.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/async_client.py +11 -12
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/client.py +1 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/pagers.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/transports/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/transports/base.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/async_client.py +1 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/client.py +1 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/pagers.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/transports/base.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/async_client.py +1 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/client.py +1 -2
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/pagers.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/types/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/types/log_entry.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/types/logging.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/types/logging_config.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/types/logging_metrics.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1/google_cloud_logging.egg-info}/PKG-INFO +23 -24
- google_cloud_logging-3.16.1/google_cloud_logging.egg-info/requires.txt +13 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/setup.py +14 -13
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/__init__.py +1 -1
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/gapic/__init__.py +1 -1
- google_cloud_logging-3.16.1/tests/unit/gapic/logging_v2/__init__.py +15 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/gapic/logging_v2/test_config_service_v2.py +473 -515
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/gapic/logging_v2/test_logging_service_v2.py +105 -110
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/gapic/logging_v2/test_metrics_service_v2.py +91 -91
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_logger.py +0 -11
- google_cloud_logging-3.15.0/google_cloud_logging.egg-info/requires.txt +0 -16
- google_cloud_logging-3.15.0/tests/unit/gapic/logging_v2/__init__.py +0 -15
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/LICENSE +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/handlers/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/handlers/middleware/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/py.typed +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/_gapic.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/_helpers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/_http.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/_instrumentation.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/entries.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/gapic_metadata.json +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/_helpers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/_monitored_resources.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/app_engine.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/container_engine.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/handlers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/middleware/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/middleware/request.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/transports/background_thread.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/transports/base.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/handlers/transports/sync.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/logger.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/metric.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/py.typed +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/resource.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/sink.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google_cloud_logging.egg-info/SOURCES.txt +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google_cloud_logging.egg-info/dependency_links.txt +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google_cloud_logging.egg-info/not-zip-safe +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google_cloud_logging.egg-info/top_level.txt +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/setup.cfg +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/system/gapic/v2/test_system_logging_service_v2_v2.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/system/test_system.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/middleware/test_request.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test__helpers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test__monitored_resources.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test_app_engine.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test_container_engine.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test_handlers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/test_structured_log.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/transports/test_background_thread.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/transports/test_base.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/handlers/transports/test_sync.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test__gapic.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test__helpers.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test__http.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test__instrumentation.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_client.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_entries.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_logging_shim.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_metric.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_packaging.py +0 -0
- {google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/tests/unit/test_sink.py +0 -0
{google_cloud_logging-3.15.0/google_cloud_logging.egg-info → google_cloud_logging-3.16.1}/PKG-INFO
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-logging
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.16.1
|
|
4
4
|
Summary: Google Cloud Logging API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-logging
|
|
6
6
|
Author: Google LLC
|
|
7
7
|
Author-email: googleapis-packages@google.com
|
|
8
|
-
License: Apache
|
|
8
|
+
License: Apache-2.0
|
|
9
9
|
Platform: Posix; MacOS X; Windows
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -20,20 +19,19 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
20
|
Classifier: Operating System :: OS Independent
|
|
22
21
|
Classifier: Topic :: Internet
|
|
23
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
24
23
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.
|
|
24
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.24.2
|
|
26
25
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
27
26
|
Requires-Dist: google-cloud-appengine-logging<2.0.0,>=0.1.3
|
|
28
|
-
Requires-Dist: google-cloud-audit-log<1.0.0,>=0.3.
|
|
27
|
+
Requires-Dist: google-cloud-audit-log<1.0.0,>=0.3.2
|
|
29
28
|
Requires-Dist: google-cloud-core<3.0.0,>=2.0.0
|
|
30
|
-
Requires-Dist: grpc-google-iam-v1<1.0.0,>=0.
|
|
31
|
-
Requires-Dist: opentelemetry-api>=1.
|
|
32
|
-
Requires-Dist: grpcio<2.0.0,>=1.
|
|
29
|
+
Requires-Dist: grpc-google-iam-v1<1.0.0,>=0.14.2
|
|
30
|
+
Requires-Dist: opentelemetry-api>=1.16.0
|
|
31
|
+
Requires-Dist: grpcio<2.0.0,>=1.59.0
|
|
33
32
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
34
|
-
Requires-Dist: proto-plus<2.0.0,>=1.
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist: protobuf<8.0.0,>=4.25.8
|
|
33
|
+
Requires-Dist: proto-plus<2.0.0,>=1.26.1
|
|
34
|
+
Requires-Dist: protobuf<8.0.0,>=6.33.5
|
|
37
35
|
Dynamic: author
|
|
38
36
|
Dynamic: author-email
|
|
39
37
|
Dynamic: classifier
|
|
@@ -46,12 +44,12 @@ Dynamic: requires-dist
|
|
|
46
44
|
Dynamic: requires-python
|
|
47
45
|
Dynamic: summary
|
|
48
46
|
|
|
49
|
-
Python Client for Cloud Logging
|
|
50
|
-
|
|
47
|
+
Python Client for Cloud Logging
|
|
48
|
+
===============================
|
|
51
49
|
|
|
52
50
|
|stable| |pypi| |versions|
|
|
53
51
|
|
|
54
|
-
`Cloud Logging
|
|
52
|
+
`Cloud Logging`_: Writes log entries and manages your Cloud Logging configuration.
|
|
55
53
|
|
|
56
54
|
- `Client Library Documentation`_
|
|
57
55
|
- `Product Documentation`_
|
|
@@ -62,9 +60,9 @@ Python Client for Cloud Logging API
|
|
|
62
60
|
:target: https://pypi.org/project/google-cloud-logging/
|
|
63
61
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-logging.svg
|
|
64
62
|
:target: https://pypi.org/project/google-cloud-logging/
|
|
65
|
-
.. _Cloud Logging
|
|
63
|
+
.. _Cloud Logging: https://cloud.google.com/logging/
|
|
66
64
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/logging/latest/summary_overview
|
|
67
|
-
.. _Product Documentation: https://cloud.google.com/logging/
|
|
65
|
+
.. _Product Documentation: https://cloud.google.com/logging/
|
|
68
66
|
|
|
69
67
|
Quick Start
|
|
70
68
|
-----------
|
|
@@ -73,12 +71,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
73
71
|
|
|
74
72
|
1. `Select or create a Cloud Platform project.`_
|
|
75
73
|
2. `Enable billing for your project.`_
|
|
76
|
-
3. `Enable the Cloud Logging
|
|
74
|
+
3. `Enable the Cloud Logging.`_
|
|
77
75
|
4. `Set up Authentication.`_
|
|
78
76
|
|
|
79
77
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
80
78
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
81
|
-
.. _Enable the Cloud Logging
|
|
79
|
+
.. _Enable the Cloud Logging.: https://cloud.google.com/logging/
|
|
82
80
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
83
81
|
|
|
84
82
|
For an interactive walkthrough on how to use this library in a python application, click the Guide Me button below:
|
|
@@ -116,14 +114,15 @@ Supported Python Versions
|
|
|
116
114
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
117
115
|
Python.
|
|
118
116
|
|
|
119
|
-
Python >= 3.
|
|
117
|
+
Python >= 3.10, including 3.14
|
|
120
118
|
|
|
121
119
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
122
120
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
123
121
|
|
|
124
122
|
Unsupported Python Versions
|
|
125
123
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
126
|
-
Python <= 3.
|
|
124
|
+
Python <= 3.9
|
|
125
|
+
|
|
127
126
|
|
|
128
127
|
If you are using an `end-of-life`_
|
|
129
128
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -152,14 +151,14 @@ Windows
|
|
|
152
151
|
Next Steps
|
|
153
152
|
~~~~~~~~~~
|
|
154
153
|
|
|
155
|
-
- Read the `Client Library Documentation`_ for Cloud Logging
|
|
154
|
+
- Read the `Client Library Documentation`_ for Cloud Logging
|
|
156
155
|
to see other available methods on the client.
|
|
157
|
-
- Read the `Cloud Logging
|
|
156
|
+
- Read the `Cloud Logging Product documentation`_ to learn
|
|
158
157
|
more about the product and see How-to Guides.
|
|
159
158
|
- View this `README`_ to see the full list of Cloud
|
|
160
159
|
APIs that we cover.
|
|
161
160
|
|
|
162
|
-
.. _Cloud Logging
|
|
161
|
+
.. _Cloud Logging Product documentation: https://cloud.google.com/logging/
|
|
163
162
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
164
163
|
|
|
165
164
|
Logging
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Python Client for Cloud Logging
|
|
2
|
-
|
|
1
|
+
Python Client for Cloud Logging
|
|
2
|
+
===============================
|
|
3
3
|
|
|
4
4
|
|stable| |pypi| |versions|
|
|
5
5
|
|
|
6
|
-
`Cloud Logging
|
|
6
|
+
`Cloud Logging`_: Writes log entries and manages your Cloud Logging configuration.
|
|
7
7
|
|
|
8
8
|
- `Client Library Documentation`_
|
|
9
9
|
- `Product Documentation`_
|
|
@@ -14,9 +14,9 @@ Python Client for Cloud Logging API
|
|
|
14
14
|
:target: https://pypi.org/project/google-cloud-logging/
|
|
15
15
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-logging.svg
|
|
16
16
|
:target: https://pypi.org/project/google-cloud-logging/
|
|
17
|
-
.. _Cloud Logging
|
|
17
|
+
.. _Cloud Logging: https://cloud.google.com/logging/
|
|
18
18
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/logging/latest/summary_overview
|
|
19
|
-
.. _Product Documentation: https://cloud.google.com/logging/
|
|
19
|
+
.. _Product Documentation: https://cloud.google.com/logging/
|
|
20
20
|
|
|
21
21
|
Quick Start
|
|
22
22
|
-----------
|
|
@@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
25
25
|
|
|
26
26
|
1. `Select or create a Cloud Platform project.`_
|
|
27
27
|
2. `Enable billing for your project.`_
|
|
28
|
-
3. `Enable the Cloud Logging
|
|
28
|
+
3. `Enable the Cloud Logging.`_
|
|
29
29
|
4. `Set up Authentication.`_
|
|
30
30
|
|
|
31
31
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
32
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
-
.. _Enable the Cloud Logging
|
|
33
|
+
.. _Enable the Cloud Logging.: https://cloud.google.com/logging/
|
|
34
34
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
35
|
|
|
36
36
|
For an interactive walkthrough on how to use this library in a python application, click the Guide Me button below:
|
|
@@ -68,14 +68,15 @@ Supported Python Versions
|
|
|
68
68
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
69
69
|
Python.
|
|
70
70
|
|
|
71
|
-
Python >= 3.
|
|
71
|
+
Python >= 3.10, including 3.14
|
|
72
72
|
|
|
73
73
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
74
74
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
75
75
|
|
|
76
76
|
Unsupported Python Versions
|
|
77
77
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
78
|
-
Python <= 3.
|
|
78
|
+
Python <= 3.9
|
|
79
|
+
|
|
79
80
|
|
|
80
81
|
If you are using an `end-of-life`_
|
|
81
82
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -104,14 +105,14 @@ Windows
|
|
|
104
105
|
Next Steps
|
|
105
106
|
~~~~~~~~~~
|
|
106
107
|
|
|
107
|
-
- Read the `Client Library Documentation`_ for Cloud Logging
|
|
108
|
+
- Read the `Client Library Documentation`_ for Cloud Logging
|
|
108
109
|
to see other available methods on the client.
|
|
109
|
-
- Read the `Cloud Logging
|
|
110
|
+
- Read the `Cloud Logging Product documentation`_ to learn
|
|
110
111
|
more about the product and see How-to Guides.
|
|
111
112
|
- View this `README`_ to see the full list of Cloud
|
|
112
113
|
APIs that we cover.
|
|
113
114
|
|
|
114
|
-
.. _Cloud Logging
|
|
115
|
+
.. _Cloud Logging Product documentation: https://cloud.google.com/logging/
|
|
115
116
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
116
117
|
|
|
117
118
|
Logging
|
{google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging/gapic_version.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "3.
|
|
16
|
+
__version__ = "3.16.1" # {x-release-please-version}
|
{google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/client.py
RENAMED
|
@@ -383,7 +383,8 @@ class Client(ClientWithProject):
|
|
|
383
383
|
elif monitored_resource.type == _GKE_RESOURCE_TYPE:
|
|
384
384
|
return StructuredLogHandler(**kw, project_id=self.project)
|
|
385
385
|
elif monitored_resource.type == _GCF_RESOURCE_TYPE:
|
|
386
|
-
#
|
|
386
|
+
# Bypassing redirects via __stdout__ ensures structured logging
|
|
387
|
+
# works robustly on Google Cloud Functions even if stdout is redirected.
|
|
387
388
|
kw["stream"] = kw.get("stream", sys.__stdout__)
|
|
388
389
|
return StructuredLogHandler(**kw, project_id=self.project)
|
|
389
390
|
elif monitored_resource.type == _RUN_RESOURCE_TYPE:
|
{google_cloud_logging-3.15.0 → google_cloud_logging-3.16.1}/google/cloud/logging_v2/gapic_version.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "3.
|
|
16
|
+
__version__ = "3.16.1" # {x-release-please-version}
|
|
@@ -77,7 +77,7 @@ class StructuredLogHandler(logging.StreamHandler):
|
|
|
77
77
|
Args:
|
|
78
78
|
labels (Optional[dict]): Additional labels to attach to logs.
|
|
79
79
|
stream (Optional[IO]): Stream to be used by the handler.
|
|
80
|
-
|
|
80
|
+
project_id (Optional[str]): Project Id associated with the logs.
|
|
81
81
|
json_encoder_cls (Optional[Type[JSONEncoder]]): Custom JSON encoder. Defaults to json.JSONEncoder
|
|
82
82
|
"""
|
|
83
83
|
super(StructuredLogHandler, self).__init__(stream=stream)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
#
|
|
16
16
|
import logging as std_logging
|
|
17
17
|
import re
|
|
18
|
-
import uuid
|
|
19
18
|
from collections import OrderedDict
|
|
20
19
|
from typing import (
|
|
21
20
|
Callable,
|
|
@@ -575,11 +574,11 @@ class ConfigServiceV2AsyncClient:
|
|
|
575
574
|
)
|
|
576
575
|
|
|
577
576
|
# Make the request
|
|
578
|
-
operation = client.create_bucket_async(request=request)
|
|
577
|
+
operation = await client.create_bucket_async(request=request)
|
|
579
578
|
|
|
580
579
|
print("Waiting for operation to complete...")
|
|
581
580
|
|
|
582
|
-
response =
|
|
581
|
+
response = await operation.result()
|
|
583
582
|
|
|
584
583
|
# Handle the response
|
|
585
584
|
print(response)
|
|
@@ -681,11 +680,11 @@ class ConfigServiceV2AsyncClient:
|
|
|
681
680
|
)
|
|
682
681
|
|
|
683
682
|
# Make the request
|
|
684
|
-
operation = client.update_bucket_async(request=request)
|
|
683
|
+
operation = await client.update_bucket_async(request=request)
|
|
685
684
|
|
|
686
685
|
print("Waiting for operation to complete...")
|
|
687
686
|
|
|
688
|
-
response =
|
|
687
|
+
response = await operation.result()
|
|
689
688
|
|
|
690
689
|
# Handle the response
|
|
691
690
|
print(response)
|
|
@@ -2274,11 +2273,11 @@ class ConfigServiceV2AsyncClient:
|
|
|
2274
2273
|
)
|
|
2275
2274
|
|
|
2276
2275
|
# Make the request
|
|
2277
|
-
operation = client.create_link(request=request)
|
|
2276
|
+
operation = await client.create_link(request=request)
|
|
2278
2277
|
|
|
2279
2278
|
print("Waiting for operation to complete...")
|
|
2280
2279
|
|
|
2281
|
-
response =
|
|
2280
|
+
response = await operation.result()
|
|
2282
2281
|
|
|
2283
2282
|
# Handle the response
|
|
2284
2283
|
print(response)
|
|
@@ -2424,11 +2423,11 @@ class ConfigServiceV2AsyncClient:
|
|
|
2424
2423
|
)
|
|
2425
2424
|
|
|
2426
2425
|
# Make the request
|
|
2427
|
-
operation = client.delete_link(request=request)
|
|
2426
|
+
operation = await client.delete_link(request=request)
|
|
2428
2427
|
|
|
2429
2428
|
print("Waiting for operation to complete...")
|
|
2430
2429
|
|
|
2431
|
-
response =
|
|
2430
|
+
response = await operation.result()
|
|
2432
2431
|
|
|
2433
2432
|
# Handle the response
|
|
2434
2433
|
print(response)
|
|
@@ -3992,11 +3991,11 @@ class ConfigServiceV2AsyncClient:
|
|
|
3992
3991
|
)
|
|
3993
3992
|
|
|
3994
3993
|
# Make the request
|
|
3995
|
-
operation = client.copy_log_entries(request=request)
|
|
3994
|
+
operation = await client.copy_log_entries(request=request)
|
|
3996
3995
|
|
|
3997
3996
|
print("Waiting for operation to complete...")
|
|
3998
3997
|
|
|
3999
|
-
response =
|
|
3998
|
+
response = await operation.result()
|
|
4000
3999
|
|
|
4001
4000
|
# Handle the response
|
|
4002
4001
|
print(response)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,6 @@ import json
|
|
|
17
17
|
import logging as std_logging
|
|
18
18
|
import os
|
|
19
19
|
import re
|
|
20
|
-
import uuid
|
|
21
20
|
import warnings
|
|
22
21
|
from collections import OrderedDict
|
|
23
22
|
from http import HTTPStatus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
#
|
|
16
16
|
import logging as std_logging
|
|
17
17
|
import re
|
|
18
|
-
import uuid
|
|
19
18
|
from collections import OrderedDict
|
|
20
19
|
from typing import (
|
|
21
20
|
AsyncIterable,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,6 @@ import json
|
|
|
17
17
|
import logging as std_logging
|
|
18
18
|
import os
|
|
19
19
|
import re
|
|
20
|
-
import uuid
|
|
21
20
|
import warnings
|
|
22
21
|
from collections import OrderedDict
|
|
23
22
|
from http import HTTPStatus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
#
|
|
16
16
|
import logging as std_logging
|
|
17
17
|
import re
|
|
18
|
-
import uuid
|
|
19
18
|
from collections import OrderedDict
|
|
20
19
|
from typing import (
|
|
21
20
|
Callable,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,6 @@ import json
|
|
|
17
17
|
import logging as std_logging
|
|
18
18
|
import os
|
|
19
19
|
import re
|
|
20
|
-
import uuid
|
|
21
20
|
import warnings
|
|
22
21
|
from collections import OrderedDict
|
|
23
22
|
from http import HTTPStatus
|