python - TimedRotatingFileHandler: Log only when detected time to rotate -
i have function makes calls logger every second, however, want log information hour before logfile rotates.
use logging.handlers.timedrotatingfilehandler(filename, when='h', interval=1)
Comments
Post a Comment