Skip to content

Add ability to assign your own SQLLogger #1280

@rjd22

Description

@rjd22

At this moment adding your own SQL logger is not possible because the set is fixed.

I've been working on the implementation of the Sentry Performance integration and after a lot of poking and prodding there just doesn't seem to be a way to do this nicely. So I had to come up with trickery by replacing the DbalLogger.

Would it be acceptable for you to give an PR that allows you to set your own custom logger next to the DbalLogger?

Link to sentry PR:
getsentry/sentry-symfony#426

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions