Description
Is your feature request related to a problem? Please describe.
When working locally, we often wish to visualise the "message" of logs without structured logging as it is more readable and we have no intention of searching the logs. We also wish to log to file often when testing locally.
Is there any way we can hot-swap the default Python logger or replace the logger universally across a codebase?
Describe the solution you'd like
Ability to disable structured logging across a code base and default to a standard python logger such that we have a way to make the code base log to local file and display without structured logs during local testing.
Describe alternatives you've considered
I thought initially we could just mock out the logger with the default logger, but the introduction of child=True (which is not in the default logger) would mean that does not work I think.
I was thinking maybe we could also try and add the default logger as an additional logger by patching the init of the powertools logger maybe?
Metadata
Metadata
Assignees
Type
Projects
Status