LogMessageParserInterface
interface LogMessageParserInterface (View source)
Defines an interface for parsing log messages and their placeholders.
Methods
array
parseMessagePlaceholders(string $message, array $context)
Parses and transforms message and its placeholders to a common format.
Details
array
parseMessagePlaceholders(string $message, array $context)
Parses and transforms message and its placeholders to a common format.
For a value to be considered as a placeholder should be in the following formats:
- @link https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#12-message The PSR3 format @endlink
- The Drupal specific string placeholder format, described in \Drupal\Component\Render\FormattableMarkup
Values in PSR3 format will be transformed to \Drupal\Component\Render\FormattableMarkup format.