Delgan

Results 607 comments of Delgan

@JulianOrteil Yeah, sorry. I realized there will be an error with the second snippet I provided because `record["exception"]` is an immutable `namedtuple()` but I forgot to update the comment. >.<...

Wow, I never noticed these methods existed nor that they were part of the documentation. O.o Again, that a great workaround. Thanks for sharing it!

@holyachon @JulianOrteil This issue is not yet fixed but I'll handle it soon.

Hi. Where does the "200 OK" log come from? It's probably related to FastAPI, so there's not much Loguru can do to help you. You need to find a way...

I'm sorry but I don't know FastAPI / Uvicorn enough to be of any help here. This StackOverflow questions seems related: [Logging UUID per API request in Python FastAPI](https://stackoverflow.com/questions/71523294/logging-uuid-per-api-request-in-python-fastapi). Maybe...

Hi. Does this error occur randomly or every time a message is logged?

This is probably because of the default handler added automatically which logs messages to `sys.stderr`. You need to call [`logger.remove()`](https://loguru.readthedocs.io/en/stable/api/logger.html#loguru._logger.Logger.remove) first.

You're right @urmzd, thanks for the suggestion. I added it to the "Help & Guides" page of the documentation: [Avoiding logs to be printed twice on the terminal](https://loguru.readthedocs.io/en/latest/resources/recipes.html#avoiding-logs-to-be-printed-twice-on-the-terminal). Perhaps the...

@urmzd Thank you for your kind offer! I could certainly find a couple of questions that would fit in the FAQ as well. If you have any ideas that could...

Hi @hadim. Which version of Loguru are you using? I tested in on my computer and it works fine (Linux, Python 3.9.2, joblib 1.0.1, loguru 0.5.3).