Entries#
Log entries within the Google Cloud Logging API.
-
class
gcloud.logging.entries.ProtobufEntry(payload, logger, insert_id=None, timestamp=None, labels=None, severity=None, http_request=None)[source]# Bases:
gcloud.logging.entries._BaseEntryEntry created with
protoPayload.See: https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
-
class
gcloud.logging.entries.StructEntry(payload, logger, insert_id=None, timestamp=None, labels=None, severity=None, http_request=None)[source]# Bases:
gcloud.logging.entries._BaseEntryEntry created with
jsonPayload.See: https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
-
class
gcloud.logging.entries.TextEntry(payload, logger, insert_id=None, timestamp=None, labels=None, severity=None, http_request=None)[source]# Bases:
gcloud.logging.entries._BaseEntryEntry created with
textPayload.See: https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
-
gcloud.logging.entries.logger_name_from_path(path)[source]# Validate a logger URI path and get the logger name.
Parameters: path (str) – URI path for a logger API request. Return type: str Returns: Logger name parsed from path.Raises: ValueErrorif thepathis ill-formed or if the project from thepathdoes not agree with theprojectpassed in.