Skip to content

Feature request: Add property to logger class to return currently configured keys #3505

Closed
@gwlester

Description

@gwlester

Use case

For introspection code may want to see if an addition key has already been added to the logger before appending it since subsequent appends override the previous values.

Note -- it may be proper to add a similar property to the formatter classes.

Solution/User Experience

current_keys = logger.current_keys

Alternative solutions

Could "know" where the keys are stored in the formatter and directly access them -- that would be fragile.

Acknowledgment

Metadata

Metadata

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions