google-cloud-logging 3.13.0__py3-none-any.whl
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/__init__.py +53 -0
- google/cloud/logging/gapic_version.py +16 -0
- google/cloud/logging/handlers/__init__.py +31 -0
- google/cloud/logging/handlers/middleware/__init__.py +17 -0
- google/cloud/logging/handlers/transports/__init__.py +28 -0
- google/cloud/logging/py.typed +2 -0
- google/cloud/logging_v2/__init__.py +61 -0
- google/cloud/logging_v2/_gapic.py +647 -0
- google/cloud/logging_v2/_helpers.py +152 -0
- google/cloud/logging_v2/_http.py +549 -0
- google/cloud/logging_v2/_instrumentation.py +92 -0
- google/cloud/logging_v2/client.py +429 -0
- google/cloud/logging_v2/entries.py +358 -0
- google/cloud/logging_v2/gapic_metadata.json +481 -0
- google/cloud/logging_v2/gapic_version.py +16 -0
- google/cloud/logging_v2/handlers/__init__.py +31 -0
- google/cloud/logging_v2/handlers/_helpers.py +283 -0
- google/cloud/logging_v2/handlers/_monitored_resources.py +303 -0
- google/cloud/logging_v2/handlers/app_engine.py +139 -0
- google/cloud/logging_v2/handlers/container_engine.py +62 -0
- google/cloud/logging_v2/handlers/handlers.py +340 -0
- google/cloud/logging_v2/handlers/middleware/__init__.py +17 -0
- google/cloud/logging_v2/handlers/middleware/request.py +52 -0
- google/cloud/logging_v2/handlers/structured_log.py +150 -0
- google/cloud/logging_v2/handlers/transports/__init__.py +29 -0
- google/cloud/logging_v2/handlers/transports/background_thread.py +343 -0
- google/cloud/logging_v2/handlers/transports/base.py +61 -0
- google/cloud/logging_v2/handlers/transports/sync.py +68 -0
- google/cloud/logging_v2/logger.py +541 -0
- google/cloud/logging_v2/metric.py +180 -0
- google/cloud/logging_v2/py.typed +2 -0
- google/cloud/logging_v2/resource.py +51 -0
- google/cloud/logging_v2/services/__init__.py +15 -0
- google/cloud/logging_v2/services/config_service_v2/__init__.py +22 -0
- google/cloud/logging_v2/services/config_service_v2/async_client.py +4232 -0
- google/cloud/logging_v2/services/config_service_v2/client.py +4686 -0
- google/cloud/logging_v2/services/config_service_v2/pagers.py +820 -0
- google/cloud/logging_v2/services/config_service_v2/transports/__init__.py +33 -0
- google/cloud/logging_v2/services/config_service_v2/transports/base.py +748 -0
- google/cloud/logging_v2/services/config_service_v2/transports/grpc.py +1345 -0
- google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py +1660 -0
- google/cloud/logging_v2/services/logging_service_v2/__init__.py +22 -0
- google/cloud/logging_v2/services/logging_service_v2/async_client.py +1272 -0
- google/cloud/logging_v2/services/logging_service_v2/client.py +1686 -0
- google/cloud/logging_v2/services/logging_service_v2/pagers.py +516 -0
- google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py +33 -0
- google/cloud/logging_v2/services/logging_service_v2/transports/base.py +361 -0
- google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py +566 -0
- google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py +703 -0
- google/cloud/logging_v2/services/metrics_service_v2/__init__.py +22 -0
- google/cloud/logging_v2/services/metrics_service_v2/async_client.py +1119 -0
- google/cloud/logging_v2/services/metrics_service_v2/client.py +1534 -0
- google/cloud/logging_v2/services/metrics_service_v2/pagers.py +196 -0
- google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py +33 -0
- google/cloud/logging_v2/services/metrics_service_v2/transports/base.py +320 -0
- google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py +520 -0
- google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py +629 -0
- google/cloud/logging_v2/sink.py +233 -0
- google/cloud/logging_v2/types/__init__.py +178 -0
- google/cloud/logging_v2/types/log_entry.py +435 -0
- google/cloud/logging_v2/types/logging.py +602 -0
- google/cloud/logging_v2/types/logging_config.py +2418 -0
- google/cloud/logging_v2/types/logging_metrics.py +412 -0
- google_cloud_logging-3.13.0.dist-info/METADATA +143 -0
- google_cloud_logging-3.13.0.dist-info/RECORD +68 -0
- google_cloud_logging-3.13.0.dist-info/WHEEL +5 -0
- google_cloud_logging-3.13.0.dist-info/licenses/LICENSE +202 -0
- google_cloud_logging-3.13.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
# Copyright 2020 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
#
|
|
17
|
+
|
|
18
|
+
from google.cloud.logging_v2 import __version__
|
|
19
|
+
from google.cloud.logging_v2 import ASCENDING
|
|
20
|
+
from google.cloud.logging_v2 import DESCENDING
|
|
21
|
+
|
|
22
|
+
from google.cloud.logging_v2.client import Client
|
|
23
|
+
from google.cloud.logging_v2.entries import logger_name_from_path
|
|
24
|
+
from google.cloud.logging_v2.entries import LogEntry
|
|
25
|
+
from google.cloud.logging_v2.entries import TextEntry
|
|
26
|
+
from google.cloud.logging_v2.entries import StructEntry
|
|
27
|
+
from google.cloud.logging_v2.entries import ProtobufEntry
|
|
28
|
+
from google.cloud.logging_v2 import handlers
|
|
29
|
+
from google.cloud.logging_v2.logger import Logger
|
|
30
|
+
from google.cloud.logging_v2.logger import Batch
|
|
31
|
+
from google.cloud.logging_v2.metric import Metric
|
|
32
|
+
from google.cloud.logging_v2.resource import Resource
|
|
33
|
+
from google.cloud.logging_v2.sink import Sink
|
|
34
|
+
from google.cloud.logging_v2 import types
|
|
35
|
+
|
|
36
|
+
__all__ = (
|
|
37
|
+
"__version__",
|
|
38
|
+
"ASCENDING",
|
|
39
|
+
"Batch",
|
|
40
|
+
"Client",
|
|
41
|
+
"DESCENDING",
|
|
42
|
+
"handlers",
|
|
43
|
+
"logger_name_from_path",
|
|
44
|
+
"Logger",
|
|
45
|
+
"LogEntry",
|
|
46
|
+
"Metric",
|
|
47
|
+
"ProtobufEntry",
|
|
48
|
+
"Resource",
|
|
49
|
+
"Sink",
|
|
50
|
+
"StructEntry",
|
|
51
|
+
"TextEntry",
|
|
52
|
+
"types",
|
|
53
|
+
)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
__version__ = "3.13.0" # {x-release-please-version}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Copyright 2016 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Python :mod:`logging` handlers for Google Cloud Logging."""
|
|
16
|
+
|
|
17
|
+
from google.cloud.logging_v2.handlers.app_engine import AppEngineHandler
|
|
18
|
+
from google.cloud.logging_v2.handlers.container_engine import ContainerEngineHandler
|
|
19
|
+
from google.cloud.logging_v2.handlers.structured_log import StructuredLogHandler
|
|
20
|
+
from google.cloud.logging_v2.handlers.handlers import CloudLoggingFilter
|
|
21
|
+
from google.cloud.logging_v2.handlers.handlers import CloudLoggingHandler
|
|
22
|
+
from google.cloud.logging_v2.handlers.handlers import setup_logging
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"AppEngineHandler",
|
|
26
|
+
"CloudLoggingFilter",
|
|
27
|
+
"CloudLoggingHandler",
|
|
28
|
+
"ContainerEngineHandler",
|
|
29
|
+
"StructuredLogHandler",
|
|
30
|
+
"setup_logging",
|
|
31
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Copyright 2017 Google LLC All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from google.cloud.logging_v2.handlers.middleware.request import RequestMiddleware
|
|
16
|
+
|
|
17
|
+
__all__ = ["RequestMiddleware"]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Copyright 2016 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Transport classes for Python logging integration.
|
|
16
|
+
Currently two options are provided, a synchronous transport that makes
|
|
17
|
+
an API call for each log statement, and an asynchronous handler that
|
|
18
|
+
sends the API using a :class:`~google.cloud.logging.logger.Batch` object in
|
|
19
|
+
the background.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from google.cloud.logging_v2.handlers.transports.base import Transport
|
|
23
|
+
from google.cloud.logging_v2.handlers.transports.sync import SyncTransport
|
|
24
|
+
from google.cloud.logging_v2.handlers.transports.background_thread import (
|
|
25
|
+
BackgroundThreadTransport,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__all__ = ["BackgroundThreadTransport", "SyncTransport", "Transport"]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Copyright 2018 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from __future__ import absolute_import
|
|
16
|
+
|
|
17
|
+
from google.cloud.logging_v2 import gapic_version as package_version
|
|
18
|
+
|
|
19
|
+
__version__ = package_version.__version__
|
|
20
|
+
|
|
21
|
+
from google.cloud.logging_v2.client import Client
|
|
22
|
+
from google.cloud.logging_v2.entries import logger_name_from_path
|
|
23
|
+
from google.cloud.logging_v2.entries import LogEntry
|
|
24
|
+
from google.cloud.logging_v2.entries import TextEntry
|
|
25
|
+
from google.cloud.logging_v2.entries import StructEntry
|
|
26
|
+
from google.cloud.logging_v2.entries import ProtobufEntry
|
|
27
|
+
from google.cloud.logging_v2 import handlers
|
|
28
|
+
from google.cloud.logging_v2.logger import Logger
|
|
29
|
+
from google.cloud.logging_v2.logger import Batch
|
|
30
|
+
from google.cloud.logging_v2.metric import Metric
|
|
31
|
+
from google.cloud.logging_v2.resource import Resource
|
|
32
|
+
from google.cloud.logging_v2.sink import Sink
|
|
33
|
+
from google.cloud.logging_v2 import types
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
ASCENDING = "timestamp asc"
|
|
37
|
+
"""Query string to order by ascending timestamps."""
|
|
38
|
+
DESCENDING = "timestamp desc"
|
|
39
|
+
"""Query string to order by descending timestamps."""
|
|
40
|
+
_instrumentation_emitted = False
|
|
41
|
+
"""Flag for whether instrumentation info has been emitted"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
__all__ = (
|
|
45
|
+
"__version__",
|
|
46
|
+
"ASCENDING",
|
|
47
|
+
"Batch",
|
|
48
|
+
"Client",
|
|
49
|
+
"DESCENDING",
|
|
50
|
+
"handlers",
|
|
51
|
+
"logger_name_from_path",
|
|
52
|
+
"Logger",
|
|
53
|
+
"LogEntry",
|
|
54
|
+
"Metric",
|
|
55
|
+
"ProtobufEntry",
|
|
56
|
+
"Resource",
|
|
57
|
+
"Sink",
|
|
58
|
+
"StructEntry",
|
|
59
|
+
"TextEntry",
|
|
60
|
+
"types",
|
|
61
|
+
)
|