Log in
Interface

LoggerInterface

Magento\GraphQl\Model\Query\Logger\LoggerInterface

What it does

This interface defines a contract for logging GraphQL query execution details in Magento 2.

Developers implement this interface to create custom loggers that capture metrics like operation names, complexity, response codes, authentication status, and cache identifiers.

It's used to monitor, debug, and analyze GraphQL API performance and usage patterns.

Public Methods

  • execute()