Skip to content

Logging: support custom labels in GKE handler. #8

@ZeeD

Description

@ZeeD
handler = client.get_default_handler()
handler.labels = {"foo":"bar"}
logger = logging.getLogger("baz")
logger.addHandler(handler)
logger.warn("qux")

get_default_handler returns different implementations of the handler if you are on a local machine, or a GKE cluster.
The latter doesn't support the set of the labels.
Nor it warn about it.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.externalThis issue is blocked on a bug with the actual product.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions