Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The original Drupal handlers, especially the dblog logger, expect the log message/context to contain the original message placeholders. For example the dblog logger stores these parameters in a separate database column.
Proposed resolution
Process the message placeholders, but store them under a separate key to allow Drupal handlers to use these original values.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3103394-3.patch | 2.13 KB | casey |
#2 | 3103394-2.patch | 2.13 KB | casey |
Comments
Comment #2
casey CreditAttribution: casey at SWIS commentedComment #3
casey CreditAttribution: casey at SWIS commentedComment #4
lussolucaCommitted and pushed to 2.x-dev. Thanks!
I've add this logic to a new "monolog.processor.drupal_message_placeholder" processor meant to be used only with "drupal.dblog" handler