Log in
Model

Logger

Magento\Payment\Model\Method\Logger

What it does

This class provides secure debugging functionality for payment-related data in Magento 2.

Developers use it to log payment requests, responses, and other sensitive information while automatically masking confidential fields like credit card numbers or API keys.

It's essential for troubleshooting payment gateway integrations without exposing sensitive customer data in log files.

Public Methods

  • debug()