Problem/Motivation

We're extending the Logger class from Monolog just to provide a map between RFC 5424 levels and Monolog levels. Seldaek here suggest to move this map into Monolog itself.

Steps to reproduce

This issue has been mitigated by #3284825: Argument add to addRecord upstream, but we need to prevent that problem like this will occur in future.

Proposed resolution

Remove the Logger class from this module and move the level map upstream.

Remaining tasks

Write a patch for the module and the library.

User interface changes

None

API changes

None

Data model changes

None

Issue fork monolog-3294236

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lussoluca created an issue. See original summary.

lussoluca’s picture

Issue summary: View changes
lussoluca’s picture

Issue summary: View changes

  • lussoluca committed 900523e on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed ea4ae75 on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed 5e7056a on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed 5780511 on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed b208129 on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed c08ab3e on 2.x
    Issue #3294236: Move level mapping between rfc and monolog upstream
    
lussoluca’s picture

Status: Active » Fixed

Committed and pushed to 2.x and 3.0.x

  • lussoluca committed d1ad830 on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed f57901e on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

  • lussoluca committed 8b3cab8 on 3.0.x
    Issue #3294236 by lussoluca: Move level mapping between rfc and monolog...

Status: Fixed » Closed (fixed)

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

upchuk’s picture

This breaks BC I'm afraid. I opened another issue: https://www.drupal.org/project/monolog/issues/3307496