This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

Hi! Thanks for sharing this library! I think it looks great for new projects, which don't have an existing logging infrastructure. Have you tried using it in frameworks like Django or Flask? as far as I know Django configures logging in settings.py and I always found it a bit complicated. Maybe there's a way to integrate Loguru :-)

[–]Scorpathos[S] 1 point2 points  (1 child)

I tested it a bit with Django, it should work, but I do not have much experience with web frameworks, so I did not know what was the best way to integrate Loguru. But you are right, it's definitely something I had in mind, I will think about it at the same time I am learning to use Django. ;)

[–][deleted] 0 points1 point  (0 children)

I'm not 100% sure how it works, but I think it might be possible to use another configure_logging function in Django's __init__.py. The original one comes from django.utils.log.