Formatter
Author: LysandreJik
Pull request: yes

Add two new methods to the logging utility to automatically set the format like it is done in the `examples/` folder.

Comments:
# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=h1) Report
> Merging [#7368](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/0cffa424f855cbbd657c4f1b57f94a51b7aa8d6d?el=desc) will **decrease** coverage by `1.34%`.
> The diff coverage is `22.22%`.

[![Impacted file tree graph](https://codecov.io/gh/huggingface/transformers/pull/7368/graphs/tree.svg?width=650&height=150&src=pr&token=9qOlN6Hb1c)](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master    #7368      +/-   ##
==========================================
- Coverage   76.51%   75.17%   -1.35%     
==========================================
  Files         181      181              
  Lines       34851    34860       +9     
==========================================
- Hits        26666    26205     -461     
- Misses       8185     8655     +470     
```


| [Impacted Files](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/transformers/utils/logging.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy91dGlscy9sb2dnaW5nLnB5) | `79.31% <22.22%> (-6.59%)` | :arrow_down: |
| [src/transformers/tokenization\_fsmt.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fZnNtdC5weQ==) | `20.34% <0.00%> (-74.90%)` | :arrow_down: |
| [src/transformers/modeling\_tf\_electra.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ190Zl9lbGVjdHJhLnB5) | `25.32% <0.00%> (-73.63%)` | :arrow_down: |
| [src/transformers/modeling\_layoutlm.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ19sYXlvdXRsbS5weQ==) | `25.06% <0.00%> (-69.40%)` | :arrow_down: |
| [src/transformers/tokenization\_phobert.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fcGhvYmVydC5weQ==) | `21.80% <0.00%> (-61.66%)` | :arrow_down: |
| [src/transformers/tokenization\_bart.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fYmFydC5weQ==) | `42.10% <0.00%> (-57.90%)` | :arrow_down: |
| [src/transformers/tokenization\_bert\_generation.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fYmVydF9nZW5lcmF0aW9uLnB5) | `39.28% <0.00%> (-55.36%)` | :arrow_down: |
| [src/transformers/trainer.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90cmFpbmVyLnB5) | `13.34% <0.00%> (-42.28%)` | :arrow_down: |
| [src/transformers/modeling\_tf\_gpt2.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ190Zl9ncHQyLnB5) | `65.38% <0.00%> (-29.59%)` | :arrow_down: |
| [src/transformers/training\_args.py](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90cmFpbmluZ19hcmdzLnB5) | `62.69% <0.00%> (-28.58%)` | :arrow_down: |
| ... and [18 more](https://codecov.io/gh/huggingface/transformers/pull/7368/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=footer). Last update [0cffa42...ee18eb2](https://codecov.io/gh/huggingface/transformers/pull/7368?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).