Python logging library with vercel not working in prod

When running locally with ngrok I can see the logs. When in production, I don’t see these logs in vercel logs:

import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info("any logged information here")

The last line is inserted in any fastapi function call.

If I simply print("any logged information here") it works, but I want to log it.

Please advise

Hi, @alwayscurious2! Nice username :smile:

This seems like a related answer.