nostromoJohn

Results 4 comments of nostromoJohn

I have created a temporary workaround for this issue: 1. Create a `Logger()` instance 2. Remove the preconfigured handler using the private `_logger` attribute (`logger._logger.removeHandler(logger._logger.handlers[0])`) 3. Add the custom handler...

Hi @heitorlessa, thanks for you comment! To clarify things, I've recreated the issue without Serverless Framework. Please take a look at this code snippet (Explanation below) ```python import os import...

> * **Why**. It uses `registered_handler` property [to pick up the handler](https://github.com/aws-powertools/powertools-lambda-python/blob/16f4dbe0b94c2ad72c01a91128a729e4c36e3830/aws_lambda_powertools/logging/logger.py#L619), however right now it returns the first available handler (top-level logger). It's important to note that if you...