반응형 TimedRotate1 [Python] Logging 사용하기. FileRotate, TimeRotate Python Logging RotatingFileHandler, TimedRotatingFileHandler 예제 import logging from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler import time # Create a rotating file handler with max size and backup count file_handler = RotatingFileHandler('app.log', maxBytes=1024*1024*100, backupCount=10) # Create a file handler that rotates log files by date date_handler = TimedRotatin.. 2023. 1. 24. 이전 1 다음 728x90 반응형