Last time, I introduced how to create a common Logger module. In this installment, I will introduce how to include the execution date in log filenames. Separating log files by date makes it easier to ...
前回は、Pythonのloggingモジュールの基本的な使い方についてご紹介しました。 今回は、Loggerオブジェクトを使った、より高度な設定方法について解説します。 Loggerオブジェクトとは? Pythonのloggingモジュールでは、logging.debug()やlogging.info()などのモジュール ...
Hello there! 👋 I'm Jin, a BI Developer with a passion for all things data, Proficient in Python, SQL and Power BI import logging from logging import handlers class Logger(object): level_relations = { ...