Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add submodule imports for handlers to logging alias (#117)
- Loading branch information
1 parent
e704f28
commit 6843a3a
Showing
4 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2016 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Python :mod:`logging` handlers for Google Cloud Logging.""" | ||
|
||
from google.cloud.logging_v2.handlers.app_engine import AppEngineHandler | ||
from google.cloud.logging_v2.handlers.container_engine import ContainerEngineHandler | ||
from google.cloud.logging_v2.handlers.handlers import CloudLoggingHandler | ||
from google.cloud.logging_v2.handlers.handlers import setup_logging | ||
|
||
__all__ = [ | ||
"AppEngineHandler", | ||
"CloudLoggingHandler", | ||
"ContainerEngineHandler", | ||
"setup_logging", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2017 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from google.cloud.logging_v2.handlers.middleware.request import RequestMiddleware | ||
|
||
__all__ = ["RequestMiddleware"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2016 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Transport classes for Python logging integration. | ||
Currently two options are provided, a synchronous transport that makes | ||
an API call for each log statement, and an asynchronous handler that | ||
sends the API using a :class:`~google.cloud.logging.logger.Batch` object in | ||
the background. | ||
""" | ||
|
||
from google.cloud.logging_v2.handlers.transports.base import Transport | ||
from google.cloud.logging_v2.handlers.transports.sync import SyncTransport | ||
from google.cloud.logging_v2.handlers.transports.background_thread import ( | ||
BackgroundThreadTransport, | ||
) | ||
|
||
__all__ = ["BackgroundThreadTransport", "SyncTransport", "Transport"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters