Instantiate a logger in order to log.

Fixes #17762.
Remove deprecated and ignored PyLint options
Merge pull request #18046 from s0undt3ch/issues/17760

Instantiate a logger in order to log.