Found 7 bookmarks
Newest
Please don't hijack my Python root logger
Please don't hijack my Python root logger
With the recent explosion of LLM tools, I often like to kill time fiddling with different LLM client libraries and SDKs in one-off scripts. Lately, I’ve noticed that some newer tools frequently mess up the logger settings, meddling with my application logs. While it’s less common in more seasoned libraries, I guess it’s worth rehashing why hijacking the root logger isn’t a good idea when writing libraries or other forms of reusable code.
·rednafi.com·
Please don't hijack my Python root logger
An Intro to Logging with Loguru
An Intro to Logging with Loguru
Python's logging module isn't the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python.
·pythonpapers.com·
An Intro to Logging with Loguru
Introduction to Python’s logging library
Introduction to Python’s logging library
Logging is one of the best ways to keep track of what is going on inside your code while it is running. Python comes with a very powerful logging library but with great power… things start to get a bit complicated.
·rmcomplexity.com·
Introduction to Python’s logging library