Closed ymotongpoo closed 1 year ago
Hmm I'm not sure this is just a docstring issue. It is the intention of the library to support string severity for the hand-written, user-facing API surface
Do you see this issue for both logger
and batch
? And across log_struct
, log_text
, log_empty
, log
, etc?
I haven't dug too deep into this, but we should have tests covering this use-case, so I'm curious how general this is
Closing this as #744 (the fix to #743) is approved to merge.
Environment details
google-cloud-logging
version: 3.5.0Steps to reproduce
google.cloud.logging.Logger#log_entry
orgoogle.cloud.logging.Batch#log_entry
with named arguments, and assign severity level in string as described in the official doc.Code example
Stack trace