【轉】Python的標準logging模塊
摘要: Programmers can configure logging either by creating loggers, handlers, and formatters explicitly in a main module with the configuration methods listed above (using Python code), or by creating a logging config file. The following code is an example of configuring a very simple logger, a console handler, and a simple formatter in a Python module:閱讀全文
posted @ 2011-08-12 14:49 XXXXXX 閱讀(1217) | 評論 (0) 編輯