Log in
Model

Logger

Magento\Payment\Model\Method\Logger

What it does

This class provides debug logging functionality specifically for payment-related data in Magento 2.

It allows developers to log payment requests, responses, and other sensitive information while automatically masking configured sensitive fields (like credit card numbers or CVV codes) before writing to logs.

Use this when implementing or debugging payment methods to safely log payment gateway communications.

Public Methods

  • debug()