<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def file_handler(name, logname, filename, mode='a', encoding=None, delay=False):
 """ A Bark logging handler logging output to a named file. Similar to logging.FileHandler. """


    return wrap_log_handler(logging.FileHandler(
        filename, mode=mode, encoding=encoding, delay=delay))