

TITLE
set_verbosity_info not working

COMMENTS
4

REACTIONS
+1: 0
-1: 0
laugh: 0
hooray: 0
heart: 0
rocket: 0
eyes: 0

BODY
### System Info

Transformers version: 4.18

### Issue

The example at https://huggingface.co/docs/transformers/main_classes/logging does not work.
Workaround in example is using transformers.trainer.logger instead of get_logger.

### Who can help?

Not sure

### Information

- [X] The official example scripts
- [x] My own modified scripts

### Reproduction

```
import transformers
from transformers.utils import logging

logging.set_verbosity_info()
logger = logging.get_logger(__name__)
logger.info("set_verbosity_info before get_logger INFO")
logger.warning("WARN")

logging.set_verbosity_info()
logger.info("set_verbosity_info after get_logger INFO")

transformers.trainer.logger.info("TRAINER LOG INFO")
```
currently outputs
```
WARN
TRAINER LOG INFO
```
missing the info on the logger, so there is a disconnect between get_logger and set_verbosity_info

### Expected behavior

output
```
WARN
set_verbosity_info before get_logger INFO
set_verbosity_info after get_logger INFO
TRAINER LOG INFO
```

