{"id":23782,"library":"gax-google-logging-v2","title":"GAX Google Logging v2","description":"This library provides a low-level, auto-generated client library (gRPC/HTTP) for the Google Cloud Logging API, generated from the googleapis protobuf definitions. Version 0.8.3 is the final release; it has been superseded by google-cloud-logging. No longer maintained.","status":"deprecated","version":"0.8.3","language":"python","source_language":"en","source_url":"https://github.com/googleapis/googleapis","tags":["google","logging","gax","deprecated"],"install":[{"cmd":"pip install gax-google-logging-v2==0.8.3","lang":"bash","label":"Last published version"}],"dependencies":[],"imports":[{"note":"The package name does not match the import path. Use google.logging.v2.","wrong":"from gax_google_logging_v2 import LoggingServiceV2Client","symbol":"LoggingServiceV2Client","correct":"from google.logging.v2 import LoggingServiceV2Client"},{"note":"LogEntry is inside the log_entry submodule, not directly under v2.","wrong":"from google.logging.v2 import LogEntry","symbol":"LogEntry","correct":"from google.logging.v2.log_entry import LogEntry"}],"quickstart":{"code":"from google.logging.v2 import LoggingServiceV2Client\nfrom google.logging.v2.log_entry import LogEntry\nfrom google.logging.type import LogSeverity\n\nclient = LoggingServiceV2Client()\nentry = LogEntry(\n    log_name='projects/my-project/logs/test',\n    resource={'type': 'global'},\n    severity=LogSeverity.INFO,\n    text_payload='Hello, world!'\n)\n# Writing via deprecated API - does not support write_log_entries directly\n# Use google-cloud-logging instead\nprint('Client created successfully')","lang":"python","description":"Basic client instantiation and LogEntry creation. Note: this library does not support the write_log_entries RPC directly; it's a lower-level GAX library."},"warnings":[{"fix":"Use google-cloud-logging (pip install google-cloud-logging) instead.","message":"This library is deprecated in favor of google-cloud-logging. Do not use for new projects.","severity":"deprecated","affected_versions":"all"},{"fix":"Use 'from google.logging.v2 import ...'.","message":"The package name on PyPI (gax-google-logging-v2) does not match the import path (google.logging.v2). Many users mistakenly attempt to import from gax_google_logging_v2.","severity":"breaking","affected_versions":"all"},{"fix":"For a user-friendly client, use google-cloud-logging.","message":"This library only provides GAX (gRPC API eXtension) classes; it does not include any high-level client (like google.cloud.logging.Client). You must manually set up credentials, channels, and handle pagination.","severity":"gotcha","affected_versions":"all"},{"fix":"Use google-cloud-logging to write log entries, or manually call the generated stub with a properly constructed WriteLogEntriesRequest.","message":"The google.logging.v2.LoggingServiceV2Client's write_log_entries method may not exist in this library; it was part of a higher-level client. The GAX library exposes the RPC stubs but may require manual proto packaging.","severity":"deprecated","affected_versions":"0.8.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from google.logging.v2 import ...'.","cause":"Incorrect import path: package name is gax-google-logging-v2 but import uses underscores and the actual modules are under google.logging.","error":"ModuleNotFoundError: No module named 'gax_google_logging_v2'"},{"fix":"Use 'from google.logging.v2.log_entry import LogEntry'.","cause":"LogEntry is in the submodule google.logging.v2.log_entry.","error":"AttributeError: module 'google.logging.v2' has no attribute 'LogEntry'"},{"fix":"Use google-cloud-logging or construct a WriteLogEntriesRequest manually. Example:\nfrom google.logging.v2.logging import WriteLogEntriesRequest\nrequest = WriteLogEntriesRequest(log_name='...', entries=[...])\nclient.write_log_entries(request)","cause":"The LoggingServiceV2Client in this GAX library expects a WriteLogEntriesRequest object or specific positional args, not the short form from google-cloud-logging.","error":"TypeError: write_log_entries() missing 1 required positional argument: 'entries'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}