Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ほぼ毎秒ロガーを呼び出す関数がありますが、ログファイルがローテーションする 1 時間前に情報をログに記録したいだけです。
使用するlogging.handlers.TimedRotatingFileHandler(filename, when='H', interval=1)
logging.handlers.TimedRotatingFileHandler(filename, when='H', interval=1)