---
Name: graphql-logging
after: '#logging'
---

SilverStripe\Core\Injector\Injector:
  # Omits the HTTPOutputHandler from the logger so errors won't appear in output
  Psr\Log\LoggerInterface.graphql-quiet:
    type: singleton
    class: Monolog\Logger
    constructor:
      - 'graphql'
  # This will occasionally be overridden with SilverStripe\GraphQL\Schema\Logger to provide a nicer output on schema build task
  Psr\Log\LoggerInterface.graphql-build: '%$Psr\Log\LoggerInterface.errorhandler'
