How can I make the logging utils log to a file as well? 
# 🚀 Feature request

I want to make the logging utils log to a file in addition to the console. But I can't find an API that lets me add a handler to the logging utils.

I just realize that I can enable the propagation and add the file handler to logging.root<|||||>> I just realize that I can enable the propagation and add the file handler to logging.root

how? can you please provide the example code, if possible.<|||||>> > I just realize that I can enable the propagation and add the file handler to logging.root
> 
> how? can you please provide the example code, if possible.

@sid8491 add this piece of code at the beginning of your script
```python
file_formatter = logging.Formatter(fmt="%(asctime)s - %(levelname)s - %(name)s -   %(message)s",
                                       datefmt="%m/%d/%Y %H:%M:%S", )
file_handler = logging.FileHandler(
    os.path.join(training_args.output_dir, f"log.{os.getpid()}.{training_args.local_rank}.txt"))
file_handler.setFormatter(file_formatter)
logging.root.addHandler(file_handler)
```