loguru

How to set a minimal logging level with loguru?

How to set a minimal logging level with loguru? Question: I would like to use a different logging level in development and production. To do so, I need early in my program to set the minimal level for logs to be triggered. The default is to output all severities: from loguru import logger as log …

Total answers: 1

Logging UUID per API request in Python FastAPI

Logging UUID per API request in Python FastAPI Question: I have a pure python package(let’s call it main) that has a few functions for managing infrastructure. Alongside, I have created a FastAPI service that can make calls to the main module to invoke functionality as per need. For logging, I’m using loguru. The API on …

Total answers: 2

How to use Loguru defaults + and extra information?

How to use Loguru defaults + and extra information? Question: I’m still reaseaching about Loguru, but I can’t find an easy way to do this. I want to use the default options from Loguru, I believe they are great, but I want to add information to it, I want to add the IP of a …

Total answers: 1