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.
At the moment to define the log level for an handler an user have to specify the numeric value:
monolog.handler.rotating_file_error:
class: Monolog\Handler\RotatingFileHandler
arguments:
- 'public://logs/error.log'
- 10
- '400'
It would be more useful if we define some container parameters for those values:
monolog.handler.rotating_file_error:
class: Monolog\Handler\RotatingFileHandler
arguments:
- 'public://logs/error.log'
- 10
- '%monolog.level.error%'
Comment | File | Size | Author |
---|---|---|---|
#3 | monlog-define-container-parameters-2885800-3.patch | 619 bytes | lussoluca |
Comments
Comment #2
lussolucaComment #3
lussolucaComment #4
lussolucaComment #6
lussolucaCommitted and pushed to 8.x-1.x
Comment #7
lussoluca