Fixing the Logger deprecation notices to match the correct method name it should be informing of
bug #10033 [HttpKernel] Bugfix - Logger Deprecation Notice (Rican7)

This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #10033).

Discussion
----------

[HttpKernel] Bugfix - Logger Deprecation Notice

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

This PR fixes the Logger deprecation notices to match the correct method name it should be informing of.

Commits
-------

c55cc46 Fixing the Logger deprecation notices to match the correct method name it should be informing of