Change record status: 
Project: 
Introduced in branch: 
12.x
Introduced in version: 
12.1.0
Description: 

\Drupal\Core\Logger\LoggerChannelInterface now re-declares the PSR-3 logging methods with a @param literal-string $message annotation.

The log message is meant to be a fixed, translatable string, with variable values passed through placeholders in $context. A dynamic value passed as the message, such as an exception message, may contain user input. It also can't be translated or grouped in log viewers like dblog.

Code that uses the logger correctly needs no changes. Projects that run PHPStan may see new errors in code that builds messages dynamically.

Impacts: 
Module developers