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
A logging system should keep its dependencies to minimum so that it can keep working even when those dependencies fail.
Right now we have dependencies on two big core systems, Plugin and Entity.
Proposed resolution
Drop those dependencies by using container parameters.
This also means drop the UI as well. If someone wants to configure monolog, settings.php and/or services.yml should be used
Remaining tasks
Write patch/commit
User interface changes
Monolog no longer can be configured from UI.
API changes
...a lot
Data model changes
...a lot
Comments
Comment #2
ParisLiakos CreditAttribution: ParisLiakos commentedComment #4
ParisLiakos CreditAttribution: ParisLiakos commentedThis needs some documentation now
Comment #5
lussolucaJust a couple of note:
1) IMHO it's better to use tagged services instead of rely on service name
2) with this patch we are loosing the possibilty to set level and bubbling to handlers, maybe we should use yaml file to do this configurations? (some like monolog.yml near to settings.php)?
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedThanks for the feedback!
1) I thought about it a lot. I know its cleaner architecturally, but doing it this way means we have to subclass *all* processors that ship with monolog to be able to use them :/ which probably doesnt scale for the future...imagine monolog adding a new processor, one would have to update this module to be able to use it.. => more maintenance burden.
2) You can still provide bubbling and level, just by changing the service parameters to service.yml (right now it just uses the defaults)..maybe i should add an example of this in homepage.
Comment #7
lussolucaOk, I can live with this :-)
Perfect!