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.

CommentFileSizeAuthor
#3 3103394-3.patch2.13 KBcasey
#2 3103394-2.patch2.13 KBcasey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

casey created an issue. See original summary.

casey’s picture

Status: Active » Needs review
FileSize
2.13 KB
casey’s picture

Version: 8.x-1.x-dev » 2.0.0-beta1
FileSize
2.13 KB
lussoluca’s picture

Status: Needs review » Fixed

Committed 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

  • lussoluca committed bcbfb50 on 2.x authored by casey
    Issue #3103394 by casey: Drupal loggers should use original message...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.