Closed
Description
Environment details
- OS type and version: Linux Fedora 33
- Python version: 3.9.0
- pip version: 20.2.2
google-cloud-logging
version: 2.0.1
Steps to reproduce
- install google-cloud-logging
- open a python session in your terminal
Code example
handlers is not accessible fromgoogle.cloud.logging
:
>>> from google.cloud.logging.handlers import CloudLoggingHandler
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'google.cloud.logging.handlers'
Whereas it is from google.cloud.logging_v2
:
>>> from google.cloud.logging_v2.handlers import CloudLoggingHandler
>>>