Skip to content

handlers is not accessible fromgoogle.cloud.logging #115

@nsteinmetz

Description

@nsteinmetz

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

  1. install google-cloud-logging
  2. 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
>>> 

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions