Skip to content

Feature request: Reusing previous logger instance when already instantiated #1398

Closed as not planned
@RobinGroundfog

Description

@RobinGroundfog

Use case

As far as I can tell, calling new Logger() instantiates a new logger, which means we can't access previously appended keys across the code.

Solution/User Experience

It would be great if a new instance that uses the same service name - env var or explicit parameter - would reuse a previous Logger instance, as it's the case for the Python Powertools

Alternative solutions

No response

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

duplicateThis issue is a duplicate of an existing onefeature-requestThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger Utility

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions