Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Convert severity string to uppercase in Batch#log_struct #743

@ymotongpoo

Description

@ymotongpoo

Is your feature request related to a problem? Please describe.

As discussed in #739, currently log_struct for Batch cause type error when the log level is passed in str to severity argument. To align with the document and usability, it's great to have some mechanism to convert str to appropriate Enum value.

Describe the solution you'd like

Apply some logic to convert str data to Enum like what has done for log function

Describe alternatives you've considered

Change description of the document. (ref. #739)

Additional context

#739 #741

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions