You actually need to know that Python Logging in lambdas is a bit odd - if you are using the default logging module, when a lambda is invoked and it begins to spin up its back end, it creates a logging handler there and attaches it to the name of the log group as the handler name - not the name attribute as basicConfig does by default when it creates a logging handler
As such, basicConfig, attempting to modify the handler based on the name attribute, does NOT find the handler created by the lambda invoke start up and so will not work to update your settings, where as in your top level lambda handler file, as it can see the one logging handler at its level (in the lambda) when you use getLogger and setLevel you set that handler yourself
Therefor, if you just use getLogger() it works at the top most level (lambda handler and its file) because the lambda_handler is being imported into the backend code to run, so it can find the handler.
Any further imports however will be looking for the name path of the lambda_handler, and attaching their logging handler to that name path - meaning their logging statements will NOT show up in cloud watch.
There are three solutions I have found:
use logger = getLogger() and setLevel in the lambda handler and its file - any further files you import, do NOT use getLogger - instead just use import logging - logging.INFO(message)
to force the logger to look for a default handler and use that (note: This is not idea, you end up loosing a lot of control over your log files
if you cannot use any additional libraries, then you have to write some code in your lambda handler to see if a current logging handler exists - if it does, grab that and adjust it as needed to populate down the rest of your imports. You can find code for that scattered around SO
if you can (and I generally dislike answers that say use this library, so thats why this is answer three even though I love this library) use aws_lambda_powertools and its module Logger - this is a very powerful logging module designed to work with your existing logging statements and aws handlers in python - and its an open source python project by aws themselves. Its got a lot of great tools in it besides just the logger, but the logger is very very awesome.