General Tips¶
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,
loguruis preferred tologgingfor 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.
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://
https://
PyLint message: logging-format-interpolation
http://