Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

General Tips

  1. logging is a Python module for logging coming with the standard library while loguru is a popular 3rd-party logging library. Unless you do not want your Python package/script to depend on 3rd-party libraries, loguru is preferred to logging for multiple reasons.

    • loguru is easy and fun to use

    • Good out-of-box experience. They default settings work well for most situations. For example, loguru works with Spark by default while logging needs additional configurations.

  2. rich is a Python library for rich text and beautiful formatting in the terminal.

References

🟣 Can I make loguru to throw an exception when use it to log an exception?

https://realpython.com/python-logging/

https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels

PyLint message: logging-format-interpolation

http://www.legendu.net/misc/blog/python-logging-made-stupidly-simple-with-loguru/