formatter 是設定每一行log 的pattern。最後將file handler 以及console handler 新增到rootLogger 裡面。 rootLogger = logging.getLogger() # 用 ...
確定! 回上一頁