@typeguard.typechecked<EOL>def set_file_logger(filename: str, name: str = '<STR_LIT>', level: int = logging.DEBUG, format_string: Optional[str] = None):
if format_string is None:<EOL><INDENT>format_string = "<STR_LIT>"<EOL><DEDENT>logger = logging.getLogger(name)<EOL>logger.setLevel(logging.DEBUG)<EOL>handler = logging.FileHandler(filename)<EOL>handler.setLevel(level)<EOL>formatter = logging.Formatter(format_string, datefmt='<STR_LIT>')<EOL>handler.setFormatter(formatter)<EOL>logger.addHandler(handler)<EOL>futures_logger = logging.getLogger("<STR_LIT>")<EOL>futures_logger.addHandler(handler)<EOL>
Add a stream log handler.

    Args:
        - filename (string): Name of the file to write logs to
        - name (string): Logger name
        - level (logging.LEVEL): Set the logging level.
        - format_string (string): Set the format string

    Returns:
       -  None