Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-123

Add Ability to Unset SQL Logger in Configuration

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Add the ability to remove the SQL logger after it has been set on the configuration.

      public function setSQLLogger(SQLLogger $logger)
      

      could be changed to

      public function setSQLLogger(SQLLogger $logger = null)
      

      or another function could be added to disable the logger.

        Activity

        Hide
        Michael Ridgway added a comment -

        Added pull request for making the parameter default to null: https://github.com/doctrine/dbal/pull/26

        Show
        Michael Ridgway added a comment - Added pull request for making the parameter default to null: https://github.com/doctrine/dbal/pull/26
        Hide
        Benjamin Eberlei added a comment -

        Implemented

        Show
        Benjamin Eberlei added a comment - Implemented

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Michael Ridgway
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: