add TimedRotatingFileHandler to imports in case file-based logging is chosen

Add the import in case the file-based logging is uncommented.