def generate_simple_rotating_file_handler(cls, path_log_file=None, when='midnight', files_count=7):
        if path_log_file is None:
            path_dir = os.path.dirname(sys.argv[0])
            path_log_file = cls.suggest_script_log_name(path_dir)

        handler = logging.handlers.TimedRotatingFileHandler(path_log_file, when=when, backupCount=files_count)
        handler.setLevel(logging.DEBUG)
        handler.setFormatter(cls.FORMATTER)

        return handler