如何使用 Logging 模組 — Python 3. 14. 0 說明文件 If your logging needs are simple, then use the above examples to incorporate logging into your own scripts, and if you run into problems or don't understand something, please post a question in the Help category of the Python discussion forum and you should receive help before too long
logging — Logging facility for Python — Python 3. 14. 0 documentation The key benefit of having the logging API provided by a standard library module is that all Python modules can participate in logging, so your application log can include your own messages integrated with messages from third-party modules